用户角色切换刷新问题
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-12-26 14:37:27 +08:00
parent 9c22809bae
commit 43f99b02c4
5 changed files with 15 additions and 4 deletions
@@ -270,15 +270,16 @@ export default {
history.go(0)
// this.$router.replace({ path: '/trials/trials-list' })
} else {
history.replaceState(null, null, '/trials')
history.replaceState(null, null, '/trials/trials-workbench')
history.go(0)
// this.$router.replace({ path: '/trials/trials-workbench' })
}
this.toggleRoleVisible = false
this.toggleRoleLoading = false
this.$nextTick(() => {
window.location.reload()
})
this.$EventBus.$emit('reload')
// this.$nextTick(() => {
// window.location.reload()
// })
} else {
// 此账户暂未配置菜单权限,请联系管理员处理后再登录。
this.toggleRoleLoading = false
+5
View File
@@ -788,6 +788,11 @@ export default {
created() {
this.initPage()
},
mounted(){
this.$EventBus.$on("reload", (data) => {
window.location.reload()
});
},
methods: {
initPage() {
this.getList()
@@ -487,6 +487,9 @@ export default {
hoursTip=this.$t('common:date:good evening')
}
this.hoursTip = hoursTip
this.$EventBus.$on("reload", (data) => {
window.location.reload()
});
},
methods: {
getUserInfo() {