瀏覽代碼

更新 路由;工作站样式

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>