Browse Source

Revert "增加数据看板,首页跳转模块"

This reverts commit 9957f59be3.
master
mk 2 years ago
parent
commit
5829974a26
  1. 7
      src/router/index.js
  2. 6
      src/views/main-navbar.vue
  3. 2
      src/views/main-shuju/main-navbar.vue
  4. 5
      src/views/pages/login.vue

7
src/router/index.js

@ -34,8 +34,11 @@ export const pageRoutes = [
},
},
{
path: "/index",
path: "/",
name: "index",
redirect: {
path: "/main/lingshan-home-index",
},
component: () => import("@/views/pages/index"),
},
{
@ -53,7 +56,7 @@ export const moduleRoutes = {
component: () => import("@/views/main"),
name: "main",
redirect: {
name: "home",
path: "/main/shequ-index",
},
meta: {
title: "主入口布局",

6
src/views/main-navbar.vue

@ -43,9 +43,9 @@
mode="horizontal"
class="aui-navbar__menu mr-auto z-div"
>
<el-menu-item @click="toIndexPage">
<!-- <el-menu-item @click="toIndexPage">
<span>首页</span>
</el-menu-item>
</el-menu-item> -->
<el-menu-item
v-show="menu.showFlag==1"
@ -159,7 +159,7 @@ export default {
},
methods: {
toIndexPage() {
this.$router.replace("/index");
this.$router.replace("/indexWork");
},
// menuId()
gotoRouteHandle(menuId, idx) {

2
src/views/main-shuju/main-navbar.vue

@ -227,7 +227,7 @@ export default {
},
toIndexPage() {
this.$router.replace({name:'index'});
this.$router.replace("/indexWork");
},
// menuId()
gotoRouteHandle(menuId, idx) {

5
src/views/pages/login.vue

@ -162,9 +162,7 @@ export default {
location.href = href;
} else {
localStorage.removeItem("thePageAtExit");
// this.$router.replace({ name: "index" });
this.$router.replace({ name: "index" });
// this.$router.replace({ name: 'index' }).catch(() => {})
this.$router.replace({ path: "/main/shequ-index" });
}
},
//
@ -270,7 +268,6 @@ export default {
localStorage.setItem("userType", "work");
localStorage.setItem("token", res.data.token);
console.log(res.data.token,'ccccccc');
this.skipAfterLogin();
})
.catch(() => {

Loading…
Cancel
Save