From 42002585a481ae0770898eb9562d632a3fa26707 Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Tue, 20 Feb 2024 16:39:30 +0800 Subject: [PATCH] init --- src/addRouters.js | 2 -- src/views/large_screen_data_display/index.vue | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/addRouters.js b/src/addRouters.js index 8637921..bb6cff5 100644 --- a/src/addRouters.js +++ b/src/addRouters.js @@ -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); // 存储路由 diff --git a/src/views/large_screen_data_display/index.vue b/src/views/large_screen_data_display/index.vue index ce7cc17..4ec3145 100644 --- a/src/views/large_screen_data_display/index.vue +++ b/src/views/large_screen_data_display/index.vue @@ -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";