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