From 7a1b6e74abb606f30dce96991c1f879598288429 Mon Sep 17 00:00:00 2001 From: miofly <42859910+Miofly@users.noreply.github.com> Date: Tue, 12 Oct 2021 11:49:50 +0800 Subject: [PATCH] fix(type): typo (#1281) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(type): 删除多余的类型定义 * fix(login): 删除登录时的 toRaw 包裹参数 --- build/vite/proxy.ts | 2 +- src/views/sys/login/LoginForm.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/vite/proxy.ts b/build/vite/proxy.ts index dc23646d..8525397b 100644 --- a/build/vite/proxy.ts +++ b/build/vite/proxy.ts @@ -7,7 +7,7 @@ type ProxyItem = [string, string]; type ProxyList = ProxyItem[]; -type ProxyTargetList = Record string }>; +type ProxyTargetList = Record; const httpsRE = /^https:\/\//; diff --git a/src/views/sys/login/LoginForm.vue b/src/views/sys/login/LoginForm.vue index 32a689e0..d8a0740e 100644 --- a/src/views/sys/login/LoginForm.vue +++ b/src/views/sys/login/LoginForm.vue @@ -135,11 +135,11 @@ try { loading.value = true; const userInfo = await userStore.login( - toRaw({ + { password: data.password, username: data.account, mode: 'none', //不要默认的错误提示 - }), + }, ); if (userInfo) { notification.success({ -- GitLab