This commit is contained in:
2025-09-16 23:19:16 +08:00
parent 3585e28594
commit 190570abfe
2 changed files with 5 additions and 1 deletions

View File

@@ -3,11 +3,15 @@ import {onMounted} from "vue";
import {useSystemStore} from "./pinia/SystemStore/index.js"; import {useSystemStore} from "./pinia/SystemStore/index.js";
import {useRoute} from "vue-router"; import {useRoute} from "vue-router";
import {toPath} from "./utils/index.js"; import {toPath} from "./utils/index.js";
import {useUserStore} from "./pinia/UserStore/index.js";
import Qiniu from "./utils/Qiniu.js";
const SystemStore = useSystemStore(); const SystemStore = useSystemStore();
const UserStore = useUserStore();
const route = useRoute(); const route = useRoute();
onMounted(() => { onMounted(() => {
if (UserStore.isLogin) Qiniu.getInstance();
const isRoot = SystemStore.isRoot; const isRoot = SystemStore.isRoot;
if (window.location.href.indexOf('/manage-materials') < 0) { if (window.location.href.indexOf('/manage-materials') < 0) {
SystemStore.clearRouter().then(() => { SystemStore.clearRouter().then(() => {

File diff suppressed because one or more lines are too long