| | |
| | | |
| | | const prefixCls = getPrefixCls('user-info') |
| | | |
| | | const avatar = computed(() => userStore.user.avatar ?? avatarImg) |
| | | const avatar = computed(() => userStore.user.avatar || avatarImg) |
| | | const userName = computed(() => userStore.user.nickname ?? 'Admin') |
| | | |
| | | // 锁定屏幕 |
| | |
| | | }) |
| | | await userStore.loginOut() |
| | | tagsViewStore.delAllViews() |
| | | replace('/login?redirect=/index') |
| | | await replace('/login?redirect=/index') |
| | | } catch {} |
| | | } |
| | | const toProfile = async () => { |
| | | push('/user/profile') |
| | | } |
| | | const toDocument = () => { |
| | | window.open('https://xxxx/') |
| | | window.open('https://doc.iailab.cn/') |
| | | } |
| | | </script> |
| | | |