Browse Source

title显示

gzb
wangzhonglu 7 months ago
parent
commit
63f8e7435e
5 changed files with 15 additions and 14 deletions
  1. 1
    0
      src/router/index.js
  2. 5
    5
      src/router/platform.js
  3. 6
    6
      src/router/region.js
  4. 1
    1
      src/router/school.js
  5. 2
    2
      src/views/layout.vue

+ 1
- 0
src/router/index.js View File

72
  * 路由守卫(拦截)
72
  * 路由守卫(拦截)
73
  */
73
  */
74
 router.beforeEach((to, from, next) => {
74
 router.beforeEach((to, from, next) => {
75
+  document.title = to.meta.title;
75
   if (!to.meta.isAuth) {
76
   if (!to.meta.isAuth) {
76
     next();
77
     next();
77
   } else {
78
   } else {

+ 5
- 5
src/router/platform.js View File

28
       meta: {
28
       meta: {
29
         keepAlive: true,
29
         keepAlive: true,
30
         isAuth: true,
30
         isAuth: true,
31
-        title: "平台管控-个人中心"
31
+        title: "平台管控-个人信息"
32
       }
32
       }
33
     },
33
     },
34
     {
34
     {
39
       meta: {
39
       meta: {
40
         keepAlive: true,
40
         keepAlive: true,
41
         isAuth: true,
41
         isAuth: true,
42
-        title: "平台管控-区域管理"
42
+        title: "平台管控-区域管理-区域管理"
43
       }
43
       }
44
     },
44
     },
45
     {
45
     {
50
       meta: {
50
       meta: {
51
         keepAlive: true,
51
         keepAlive: true,
52
         isAuth: true,
52
         isAuth: true,
53
-        title: "平台管控-管理员"
53
+        title: "平台管控-区域管理-管理员"
54
       }
54
       }
55
     },
55
     },
56
     {
56
     {
61
       meta: {
61
       meta: {
62
         keepAlive: true,
62
         keepAlive: true,
63
         isAuth: true,
63
         isAuth: true,
64
-        title: "平台管控-白名单库"
64
+        title: "平台管控-网络管理-白名单库"
65
       }
65
       }
66
     },
66
     },
67
     {
67
     {
74
       meta: {
74
       meta: {
75
         keepAlive: true,
75
         keepAlive: true,
76
         isAuth: true,
76
         isAuth: true,
77
-        title: "平台管控-设备导出"
77
+        title: "平台管控-设备管理-设备导出"
78
       }
78
       }
79
     },
79
     },
80
     {
80
     {

+ 6
- 6
src/router/region.js View File

18
       meta: {
18
       meta: {
19
         keepAlive: true,
19
         keepAlive: true,
20
         isAuth: true,
20
         isAuth: true,
21
-        title: "区域管控-个人中心"
21
+        title: "区域管控-个人信息"
22
       }
22
       }
23
     },
23
     },
24
     {
24
     {
49
       meta: {
49
       meta: {
50
         keepAlive: true,
50
         keepAlive: true,
51
         isAuth: true,
51
         isAuth: true,
52
-        title: "区域管控-区域管理"
52
+        title: "区域管控-区域管理-区域管理"
53
       }
53
       }
54
     },
54
     },
55
     {
55
     {
60
       meta: {
60
       meta: {
61
         keepAlive: true,
61
         keepAlive: true,
62
         isAuth: true,
62
         isAuth: true,
63
-        title: "区域管控-学校管理"
63
+        title: "区域管控-区域管理-学校管理"
64
       }
64
       }
65
     },
65
     },
66
     {
66
     {
71
       meta: {
71
       meta: {
72
         keepAlive: true,
72
         keepAlive: true,
73
         isAuth: true,
73
         isAuth: true,
74
-        title: "区域管控-管理员"
74
+        title: "区域管控-区域管理-管理员"
75
       }
75
       }
76
     },
76
     },
77
     {
77
     {
82
       meta: {
82
       meta: {
83
         keepAlive: true,
83
         keepAlive: true,
84
         isAuth: true,
84
         isAuth: true,
85
-        title: "区域管控-应用分组"
85
+        title: "区域管控-应用管理-应用分组"
86
       }
86
       }
87
     },
87
     },
88
     {
88
     {
93
       meta: {
93
       meta: {
94
         keepAlive: true,
94
         keepAlive: true,
95
         isAuth: true,
95
         isAuth: true,
96
-        title: "区域管控-应用管理"
96
+        title: "区域管控-应用管理-应用管理"
97
       }
97
       }
98
     },
98
     },
99
     {
99
     {

+ 1
- 1
src/router/school.js View File

28
       meta: {
28
       meta: {
29
         keepAlive: true,
29
         keepAlive: true,
30
         isAuth: true,
30
         isAuth: true,
31
-        title: "学校管控-个人中心"
31
+        title: "学校管控-个人信息"
32
       }
32
       }
33
     },
33
     },
34
     {
34
     {

+ 2
- 2
src/views/layout.vue View File

382
     // 用户点击下拉菜单项
382
     // 用户点击下拉菜单项
383
     userDropdownSelectChange(name) {
383
     userDropdownSelectChange(name) {
384
       if (name === "1") {
384
       if (name === "1") {
385
-        // 个人中心
385
+        // 个人信息
386
         this.$router.push("personal");
386
         this.$router.push("personal");
387
       } else if (name === "2" || name === "3") {
387
       } else if (name === "2" || name === "3") {
388
         // 2修改密码 3更换手机号
388
         // 2修改密码 3更换手机号
429
     },
429
     },
430
     // 退出
430
     // 退出
431
     toLoginOut() {
431
     toLoginOut() {
432
-      login_login_out({ adminid: this.userInfo.adminid }).then((res) => {
432
+      login_login_out({ adminid: this.userInfo.adminid }).then(() => {
433
         this.$router.replace({
433
         this.$router.replace({
434
           path: "/login"
434
           path: "/login"
435
         });
435
         });

Loading…
Cancel
Save