Prechádzať zdrojové kódy

improve: 首页path调整

From-wh 2 rokov pred
rodič
commit
54c0eecb67

+ 1 - 9
template/admin/src/layout/navBars/tagsView/tagsView.vue

@@ -124,15 +124,7 @@ export default {
     onTagsClick(v, k) {
     onTagsClick(v, k) {
       this.tagsRoutePath = v.path;
       this.tagsRoutePath = v.path;
       this.tagsRefsIndex = k;
       this.tagsRefsIndex = k;
-      try {
-        if (v.name == 'home_index') {
-          this.$router.replace(`${setting.routePre}/home_page`);
-        } else {
-          this.$router.push(v);
-        }
-      } catch (error) {
-        console.log(error);
-      }
+      this.$router.push(v);
     },
     },
     // 获取 tagsView 的下标:用于处理 tagsView 点击时的横向滚动
     // 获取 tagsView 的下标:用于处理 tagsView 点击时的横向滚动
     getTagsRefsIndex(path) {
     getTagsRefsIndex(path) {

+ 1 - 1
template/admin/src/router/modules/index.js

@@ -29,7 +29,7 @@ export default {
   component: LayoutMain,
   component: LayoutMain,
   children: [
   children: [
     {
     {
-      path: routePre + '/home_page',
+      path: routePre + '/index',
       name: `${pre}index`,
       name: `${pre}index`,
       header: 'home',
       header: 'home',
       meta: {
       meta: {