jiaxing.zhou

feat(userRoleConfig): 更新用户角色后刷新路由

- 在用户角色配置对话框中,保存成功后添加了生成路由的 dispatch
- 确保用户角色变更后,路由能够及时更新以反映新的权限
...@@ -366,6 +366,7 @@ export default { ...@@ -366,6 +366,7 @@ export default {
366 if (res.code === "200") { 366 if (res.code === "200") {
367 this.msgSuccess(res.message); 367 this.msgSuccess(res.message);
368 this.close(); 368 this.close();
369 + this.$store.dispatch('GenerateRoutes')
369 } else { 370 } else {
370 this.alertWarningMsg(res.message); 371 this.alertWarningMsg(res.message);
371 this.loadings.dialogLoading = false; 372 this.loadings.dialogLoading = false;
......