diff --git a/src/views/home/components/InitHome/index.vue b/src/views/home/components/InitHome/index.vue index eec760bb..90229cd6 100644 --- a/src/views/home/components/InitHome/index.vue +++ b/src/views/home/components/InitHome/index.vue @@ -56,7 +56,10 @@ watch( () => user.userInfos, (val: any) => { // 超管默认综合管理视图 - if (val.username === 'admin') selectValue.value = 'comprehensive'; + if (val.username === 'admin') { + selectValue.value = 'comprehensive'; + confirm(); + } }, );