From e42ec83d42ae61a65b5c5f3c72a9b3463a78d57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E7=8C=AB?= <13581431+xiongmao1988@user.noreply.gitee.com> Date: Fri, 23 Feb 2024 22:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E7=AA=972?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/login.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 7b8b8dd..0115fd7 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -326,12 +326,6 @@ const login = async (type: string) => { //加载效果:开始加载 loading.value = true; - ElNotification({ - type: 'success', - message: '欢迎回来', - title: `HI,${getTime()}好` - }); - /*try { //保证登录成功 await useStore.userLogin(loginFormRef); @@ -370,9 +364,18 @@ function refreshImg() { } const toHome = () => { + + ElNotification({ + type: 'success', + message: '欢迎回来', + title: `HI,${getTime()}好` + }); + + const getPermissions = () => { let permissions = '普通用户' switch (loginParams.value.account) { + case 'admin': permissions = '超级管理员' break;