update
This commit is contained in:
@@ -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
Reference in New Issue
Block a user