作者 RuoYi

删除不必要的代码

@@ -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 }
@@ -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");