This commit is contained in:
zhoutianchi
2026-02-24 17:06:57 +08:00
parent 9699cdc849
commit b971e6de52
4 changed files with 76 additions and 107 deletions

View File

@@ -253,15 +253,7 @@ const getIsDot = () => {
});
};
// 登录后若存储中无角色信息则弹出角色切换框
const openChangeRoleIfMissing = () => {
const hasRole = Local.get('roleCode') && Local.get('roleName') && Local.get('roleId')
if (!hasRole) {
nextTick(() => {
setTimeout(() => ChangeRoleRef.value?.open(), 100)
})
}
}
// 首次登录缺角色时由 App.vue + 请求拦截器统一弹出「首次登录请选择角色」弹框,此处不再自动打开
// 页面加载时
onMounted(() => {
@@ -271,7 +263,6 @@ onMounted(() => {
}
useFlowJob().topJobList()
getIsDot()
openChangeRoleIfMissing()
});
</script>