This commit is contained in:
2025-09-17 21:00:53 +08:00
parent 190570abfe
commit cc8767a8a4
2 changed files with 3 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import {ref} from "vue";
import {useSystemStore} from "../SystemStore/index.js"; import {useSystemStore} from "../SystemStore/index.js";
import Api from "../../api/index.js"; import Api from "../../api/index.js";
import {toPath} from "../../utils/index.js"; import {toPath} from "../../utils/index.js";
import Qiniu from "@/utils/Qiniu.js";
export const useUserStore = defineStore("UserStore", () => { export const useUserStore = defineStore("UserStore", () => {
const isLogin = ref(false); const isLogin = ref(false);
@@ -36,6 +37,7 @@ export const useUserStore = defineStore("UserStore", () => {
// // 获取并安装路由 // // 获取并安装路由
const {setRouter} = useSystemStore(); const {setRouter} = useSystemStore();
await setRouter(isRoot); await setRouter(isRoot);
await Qiniu.getInstance();
// // 跳转 // // 跳转
toPath('/home'); toPath('/home');
} }

File diff suppressed because one or more lines are too long