jinhui.wang

提示语修正

...@@ -16,8 +16,8 @@ router.beforeEach((to, from, next) => { ...@@ -16,8 +16,8 @@ router.beforeEach((to, from, next) => {
16 store.dispatch('GetInfo').then(() => { 16 store.dispatch('GetInfo').then(() => {
17 //获取用户表头 17 //获取用户表头
18 store.dispatch('GetTableHeaders').then(() => { 18 store.dispatch('GetTableHeaders').then(() => {
19 - store.dispatch('GenerateRoutes').then(accessRoutes => {
20 // 根据roles权限生成可访问的路由表 19 // 根据roles权限生成可访问的路由表
20 + store.dispatch('GenerateRoutes').then(accessRoutes => {
21 router.addRoutes(accessRoutes) // 动态添加可访问路由表 21 router.addRoutes(accessRoutes) // 动态添加可访问路由表
22 next({ ...to, replace: true }) // hack方法 确保addRoutes已完成 22 next({ ...to, replace: true }) // hack方法 确保addRoutes已完成
23 }) 23 })
......
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
149 addPreFlight(fltList).then(res => { 149 addPreFlight(fltList).then(res => {
150 this.loading = false 150 this.loading = false
151 if (res.code === 200) { 151 if (res.code === 200) {
152 - this.msgSuccess('添加成功') 152 + this.msgSuccess(res.msg)
153 this.close() 153 this.close()
154 this.preQuery(1) 154 this.preQuery(1)
155 } else { 155 } else {
......