正在显示
4 个修改的文件
包含
15 行增加
和
12 行删除
| @@ -183,15 +183,15 @@ let routes = [ | @@ -183,15 +183,15 @@ let routes = [ | ||
| 183 | // {path: '/exchangeView', component: ExchangeView, name: '交换机监控'}, | 183 | // {path: '/exchangeView', component: ExchangeView, name: '交换机监控'}, |
| 184 | ] | 184 | ] |
| 185 | }, | 185 | }, |
| 186 | - { | ||
| 187 | - path: '/nav3', | ||
| 188 | - component: Home, | ||
| 189 | - name: '组件练习', | ||
| 190 | - iconCls: 'el-icon-view', | ||
| 191 | - children: [ | ||
| 192 | - {path: '/page7', component: Page7, name: '组件'}, | ||
| 193 | - ] | ||
| 194 | - }, | 186 | + // { |
| 187 | + // path: '/nav3', | ||
| 188 | + // component: Home, | ||
| 189 | + // name: '组件练习', | ||
| 190 | + // iconCls: 'el-icon-view', | ||
| 191 | + // children: [ | ||
| 192 | + // {path: '/page7', component: Page7, name: '组件'}, | ||
| 193 | + // ] | ||
| 194 | + // }, | ||
| 195 | 195 | ||
| 196 | 196 | ||
| 197 | // { | 197 | // { |
| @@ -258,7 +258,7 @@ | @@ -258,7 +258,7 @@ | ||
| 258 | let para = Object.assign({}, this.addForm); | 258 | let para = Object.assign({}, this.addForm); |
| 259 | addType(para).then((res) => { | 259 | addType(para).then((res) => { |
| 260 | this.$message({ | 260 | this.$message({ |
| 261 | - message: '提交成功', | 261 | + message: res.data.msg, |
| 262 | type: 'success' | 262 | type: 'success' |
| 263 | }); | 263 | }); |
| 264 | //数据初始化 | 264 | //数据初始化 |
| @@ -352,8 +352,10 @@ | @@ -352,8 +352,10 @@ | ||
| 352 | _this.loadingStatus = true; | 352 | _this.loadingStatus = true; |
| 353 | api_batchAddRouter(this.params).then(response => { | 353 | api_batchAddRouter(this.params).then(response => { |
| 354 | let res = response.data; | 354 | let res = response.data; |
| 355 | - if (res.code !== '200') { | ||
| 356 | - return _this.$message.error('批量添加路由,失败!'); | 355 | + console.log(res) |
| 356 | + if (res.code != '200') { | ||
| 357 | + return _this.$message.error(res.msg); | ||
| 358 | + _this.loadingStatus = false; | ||
| 357 | } | 359 | } |
| 358 | // 关闭加载 | 360 | // 关闭加载 |
| 359 | _this.$message.success('批量添加路由,成功!'); | 361 | _this.$message.success('批量添加路由,成功!'); |
-
请 注册 或 登录 后发表评论