diff --git a/build/vite/proxy.ts b/build/vite/proxy.ts index dc23646d5..8525397b6 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 32a689e06..d8a0740e8 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({