Commit 08df2c93a9fdeb25aecc064d13281c7f82db3cd1
1 parent
fbbdd949
删除不必要的代码
Showing
2 changed files
with
4 additions
and
6 deletions
ruoyi-ui/src/views/system/dict/index.vue
| @@ -352,9 +352,7 @@ export default { | @@ -352,9 +352,7 @@ export default { | ||
| 352 | /** 清理缓存按钮操作 */ | 352 | /** 清理缓存按钮操作 */ |
| 353 | handleClearCache() { | 353 | handleClearCache() { |
| 354 | clearCache().then(response => { | 354 | clearCache().then(response => { |
| 355 | - if (response.code === 200) { | ||
| 356 | - this.msgSuccess("清理成功"); | ||
| 357 | - } | 355 | + this.msgSuccess("清理成功"); |
| 358 | }); | 356 | }); |
| 359 | } | 357 | } |
| 360 | } | 358 | } |
ruoyi-ui/src/views/system/role/index.vue
| @@ -368,9 +368,9 @@ export default { | @@ -368,9 +368,9 @@ export default { | ||
| 368 | // 所有菜单节点数据 | 368 | // 所有菜单节点数据 |
| 369 | getMenuAllCheckedKeys() { | 369 | getMenuAllCheckedKeys() { |
| 370 | // 目前被选中的菜单节点 | 370 | // 目前被选中的菜单节点 |
| 371 | - let checkedKeys = this.$refs.menu.getHalfCheckedKeys(); | 371 | + let checkedKeys = this.$refs.menu.getCheckedKeys(); |
| 372 | // 半选中的菜单节点 | 372 | // 半选中的菜单节点 |
| 373 | - let halfCheckedKeys = this.$refs.menu.getCheckedKeys(); | 373 | + let halfCheckedKeys = this.$refs.menu.getHalfCheckedKeys(); |
| 374 | checkedKeys.unshift.apply(checkedKeys, halfCheckedKeys); | 374 | checkedKeys.unshift.apply(checkedKeys, halfCheckedKeys); |
| 375 | return checkedKeys; | 375 | return checkedKeys; |
| 376 | }, | 376 | }, |
| @@ -440,7 +440,7 @@ export default { | @@ -440,7 +440,7 @@ export default { | ||
| 440 | menuIds: [], | 440 | menuIds: [], |
| 441 | deptIds: [], | 441 | deptIds: [], |
| 442 | menuCheckStrictly: true, | 442 | menuCheckStrictly: true, |
| 443 | - deptCheckStrictly: true, | 443 | + deptCheckStrictly: true, |
| 444 | remark: undefined | 444 | remark: undefined |
| 445 | }; | 445 | }; |
| 446 | this.resetForm("form"); | 446 | this.resetForm("form"); |