This commit is contained in:
2025-04-29 19:43:06 +08:00
parent dfb552b7ed
commit ff17e84aed
26 changed files with 530 additions and 260 deletions

View File

@@ -25,9 +25,16 @@ export const useSystemStore = defineStore("SystemStore", () => {
isRoot.value = _isRoot;
RoutesTemp.value.length = 0;
// 请求资源 mockRoutes
const {data} = await Api.admin.getMenu();
RoutesTemp.value.push(...data);
if (isRoot.value) { // root
const {data} = await Api.admin.getMenu();
RoutesTemp.value.push(...data);
} else {
const {data} = await Api.merchant.getMenu();
RoutesTemp.value.push(...data);
}
await installRoute();
}