forked from integrated_whb/integrated_whb_vue
init
parent
6b17aa7db0
commit
42002585a4
|
@ -8,7 +8,6 @@ import children from "@/components/children/index";
|
|||
import { MODEL } from "@/assets/js/constant";
|
||||
// import asyncRouter from "@/assets/js/asyncRouter";
|
||||
import { getAsyncRouter } from "@/request/api";
|
||||
// import { getRouteTreeAll } from "@/request/system_management.js";
|
||||
|
||||
const modules = import.meta.glob([
|
||||
"./views/**/*.vue",
|
||||
|
@ -31,7 +30,6 @@ router.beforeEach(async (to, from, next) => {
|
|||
// pinia里没有储存路由,去后台获取路由
|
||||
if (routerStore.getRouters.length === 0) {
|
||||
const resData = await getAsyncRouter();
|
||||
// const resData = await getRouteTreeAll();
|
||||
storageRouter = resData.routeList; // 后台请求得到的路由数据
|
||||
// storageRouter = asyncRouter; // 死路由
|
||||
routerStore.setRouters(storageRouter); // 存储路由
|
||||
|
|
|
@ -34,7 +34,7 @@ import UserUsage from "./components/user_usage.vue";
|
|||
import TaskProcessing from "./components/task_processing.vue";
|
||||
import Situation from "./components/situation.vue";
|
||||
import AssignmentType from "./components/assignment_type.vue";
|
||||
import videoCenter from "./components/video_center.vue";
|
||||
import VideoCenter from "./components/video_center.vue";
|
||||
import HiddenDangerSituation from "./components/hidden_danger_situation.vue";
|
||||
import FullStaffTraining from "./components/full_staff_training.vue";
|
||||
import ExamStatistics from "./components/exam_statistics.vue";
|
||||
|
|
Loading…
Reference in New Issue