Admin
2022-07-23 61c9a9b2d21d64c1e2bc910a2f9e1ac0c017bddd
src/router/backEnd.ts
@@ -29,8 +29,8 @@
export async function initBackEndControlRoutes() {
   if (window.nextLoading === undefined) NextLoading.start();
   if (!Session.get('token')) return false;
   const res = await getBackEndControlRoutes(Session.get('projectId'));
   useRequestOldRoutes().setRequestOldRoutes(JSON.parse(JSON.stringify(res.data.data)));
   const res = await getBackEndControlRoutes(Session.get('projectId') === null ? '' : Session.get('projectId'));
   await useRequestOldRoutes().setRequestOldRoutes(JSON.parse(JSON.stringify(res.data.data)));
   dynamicRoutes[0].children = await backEndComponent(res.data.data);
   await setAddRoute();
   await setFilterMenuAndCacheTagsViewRoutes();
@@ -75,7 +75,7 @@
/**
 * 重新请求后端路由菜单接口
 * @description 用于菜单管理界面刷新菜单(未进行测试)
 * @description 路径:/src/views/system/menu/component/menuDialog.vue
 * @description 路径:/src/views/system/homeMenu/component/menuDialog.vue
 */
export function setBackEndControlRefreshRoutes() {
   getBackEndControlRoutes(Session.get('projectId'));