This commit is contained in:
2025-06-17 21:34:59 +08:00
parent 00a055685e
commit 6256cda8bc
17 changed files with 397 additions and 121 deletions

View File

@@ -1,12 +1,17 @@
<script setup>
import {onMounted} from "vue";
import {toPath} from "./utils/index.js";
import {useSystemStore} from "./pinia/SystemStore/index.js";
import {toPath} from "./utils/index.js";
const SystemStore = useSystemStore();
onMounted(() => {
toPath(SystemStore.NOW_ROUTER, SystemStore.NOW_ROUTER_QUERY);
const isRoot = SystemStore.isRoot;
SystemStore.clearRouter().then(() => {
SystemStore.setRouter(isRoot).then(() => {
toPath(SystemStore.NOW_ROUTER, SystemStore.NOW_ROUTER_QUERY);
});
});
});
</script>