feat(ui): 切换角色对话框加 loading 遮罩
- 设置默认登录角色 / 确认切换时,对话框内容区显示 element-plus v-loading 遮罩(文字区分两种操作)
This commit is contained in:
1 parent
f61716f215
commit
3aebb7a035
1 file changed
+5
-1
@@ -103,7 +103,11 @@ function roleDesc(role: RoleItem): string {
|
||||
<Transition name="role-switcher">
|
||||
<div v-if="modelValue" class="role-switcher" @click.self="close">
|
||||
<div class="role-switcher-overlay" @click="close" />
|
||||
<div class="role-switcher-content">
|
||||
<div
|
||||
class="role-switcher-content"
|
||||
v-loading="settingDefault || switching"
|
||||
:element-loading-text="settingDefault ? '正在设置默认登录角色...' : '正在切换角色...'"
|
||||
>
|
||||
<!-- 头部 -->
|
||||
<div class="role-switcher-header">
|
||||
<h3 class="role-switcher-title">切换角色</h3>
|
||||
|
||||
Reference in new issue
Block a user