@@ -49,7 +49,11 @@ router.beforeEach(async (to, from, next) => {
}
} else {
- next();
+ if (to.path == "/") {
+ next("/index");
+ } else {
+ next();
+ }
store.commit("changeLogin", false);
@@ -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",
@@ -0,0 +1,3 @@
+<template>
+ <el-empty style="margin-top: 20%" description="工作站正在建设中" />
+</template>