소스 검색

更新 路由;工作站样式

wzh 3 년 전
부모
커밋
12ea654b02
3개의 변경된 파일17개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/main.js
  2. 9 0
      src/router/index.js
  3. 3 0
      src/views/workplaceManage/workplace.vue

+ 5 - 1
src/main.js

@@ -49,7 +49,11 @@ router.beforeEach(async (to, from, next) => {
         }
       }
     } else {
-      next();
+      if (to.path == "/") {
+        next("/index");
+      } else {
+        next();
+      }
     }
   } else {
     store.commit("changeLogin", false);

+ 9 - 0
src/router/index.js

@@ -45,6 +45,15 @@ const router = createRouter({
       },
       component: VoyageList,
     },
+    {
+      path: "/workplaceManage/workplace",
+      name: "workplace",
+      meta: {
+        title: "工作站",
+        code: "VOYAGELIST",
+      },
+      component: () => import("../views/workplaceManage/workplace.vue"),
+    },
     {
       path: "/accountManage/subAccountList",
       name: "subAccountList",

+ 3 - 0
src/views/workplaceManage/workplace.vue

@@ -0,0 +1,3 @@
+<template>
+  <el-empty style="margin-top: 20%" description="工作站正在建设中" />
+</template>