ソースを参照

设置首页为管理驾驶舱

yuhan 1 年間 前
コミット
193dcf0771
共有5 個のファイルを変更した8 個の追加7 個の削除を含む
  1. 3 3
      src/components/layouts/TabLayout.vue
  2. 1 1
      src/components/tools/Breadcrumb.vue
  3. 2 1
      src/config/router.config.js
  4. 1 1
      src/utils/util.js
  5. 1 1
      src/views/user/register/RegisterResult.vue

+ 3 - 3
src/components/layouts/TabLayout.vue

@@ -14,7 +14,7 @@
       @change="changePage"
       @tabClick="tabCallBack"
       @edit="editPage">
-      <a-tab-pane :id="page.fullPath" :key="page.fullPath" v-for="page in pageList" :closable="!(page.meta.title=='首页')">
+      <a-tab-pane :id="page.fullPath" :key="page.fullPath" v-for="page in pageList" :closable="!(page.meta.title=='管理驾驶舱')">
         <span slot="tab" :pagekey="page.fullPath">{{ page.meta.title }}</span>
       </a-tab-pane>
     </a-tabs>
@@ -165,12 +165,12 @@
       // 将首页添加到第一位
       addIndexToFirst() {
         this.pageList.splice(0, 0, {
-          name: 'dashboard-analysis',
+          name: 'dashboard-Analysis',
           path: indexKey,
           fullPath: indexKey,
           meta: {
             icon: 'dashboard',
-            title: '首页'
+            title: '管理驾驶舱'
           }
         })
         this.linkList.splice(0, 0, indexKey)

+ 1 - 1
src/components/tools/Breadcrumb.vue

@@ -26,7 +26,7 @@ export default {
       console.log('this.$route.matched', this.$route.matched)
 
       this.breadList = []
-      this.breadList.push({ name: 'dashboard-analysis', path: '/dashboard/analysis', meta: { title: '首页' } })
+      this.breadList.push({ name: 'dashboard-Analysis', path: '/dashboard/analysis', meta: { title: '管理驾驶舱' } })
 
       this.name = this.$route.name
       this.$route.matched.forEach((item) => {

+ 2 - 1
src/config/router.config.js

@@ -10,7 +10,8 @@ export const asyncRouterMap = [
     path: '/',
     name: 'dashboard',
     component: TabLayout,
-    meta: { title: '首页' },
+    meta: { title: '管理驾驶舱' },
+    // meta: { title: '首页' },
     redirect: '/dashboard/analysis',
     children: [
 

+ 1 - 1
src/utils/util.js

@@ -88,7 +88,7 @@ export function generateIndexRouter(data) {
     name: 'dashboard',
     //component: () => import('@/components/layouts/BasicLayout'),
     component: resolve => require(['@/components/layouts/TabLayout'], resolve),
-    meta: { title: '首页' },
+    meta: { title: '管理驾驶舱' },
     redirect: '/dashboard/analysis',
     children: [
       ...generateChildRouters(data)

+ 1 - 1
src/views/user/register/RegisterResult.vue

@@ -5,7 +5,7 @@
     :title="email">
 
     <template slot="action">
-      <a-button size="large" style="margin-left: 8px" @click="goHomeHandle">返回首页</a-button>
+      <a-button size="large" style="margin-left: 8px" @click="goHomeHandle">返回管理驾驶舱</a-button>
     </template>
 
   </result>