Commit 90f5a279f37409e6e5a3bdaa82706474907b2854

Authored by 史婷婷
1 parent 6d23e43b

feat: 首页路径更改

... ... @@ -11,7 +11,7 @@
11 11 "navigationBarTitleText": "注册"
12 12 }
13 13 }, {
14   - "path": "pages/index",
  14 + "path": "pages/index/index",
15 15 "style": {
16 16 "navigationBarTitleText": "首页",
17 17 "navigationStyle": "custom"
... ... @@ -209,7 +209,7 @@
209 209 "selectedColor": "#3D48A3",
210 210 "borderStyle": "white",
211 211 "list": [{
212   - "pagePath": "pages/index",
  212 + "pagePath": "pages/index/index",
213 213 "iconPath": "static/images/tabbar/home.png",
214 214 "selectedIconPath": "static/images/tabbar/home_act.png",
215 215 "text": "首页"
... ...
pages/index/index.vue renamed from pages/index.vue
... ... @@ -115,7 +115,7 @@
115 115 },
116 116 // 登录成功后,处理函数
117 117 loginSuccess(result) {
118   - this.$tab.reLaunch('/pages/index')
  118 + this.$tab.reLaunch('/pages/index/index')
119 119 }
120 120 }
121 121 }
... ...
... ... @@ -126,7 +126,7 @@
126 126 handleLogout() {
127 127 this.$modal.confirm('确定注销并退出系统吗?').then(() => {
128 128 this.$store.dispatch('LogOut').then(() => {
129   - this.$tab.reLaunch('/pages/index')
  129 + this.$tab.reLaunch('/pages/index/index')
130 130 })
131 131 })
132 132 },
... ...
... ... @@ -50,7 +50,7 @@
50 50 handleLogout() {
51 51 this.$modal.confirm('确定注销并退出系统吗?').then(() => {
52 52 this.$store.dispatch('LogOut').then(() => {
53   - this.$tab.reLaunch('/pages/index')
  53 + this.$tab.reLaunch('/pages/index/index')
54 54 })
55 55 })
56 56 }
... ...
... ... @@ -111,7 +111,7 @@
111 111 registerSuccess(result) {
112 112 // 设置用户信息
113 113 this.$store.dispatch('GetInfo').then(res => {
114   - this.$tab.reLaunch('/pages/index')
  114 + this.$tab.reLaunch('/pages/index/index')
115 115 })
116 116 }
117 117 }
... ...