Commit 7a1b6e74abb606f30dce96991c1f879598288429

Authored by miofly
Committed by GitHub
1 parent b6534122

fix(type): typo (#1281)

* fix(type): 删除多余的类型定义

* fix(login): 删除登录时的 toRaw 包裹参数
build/vite/proxy.ts
@@ -7,7 +7,7 @@ type ProxyItem = [string, string]; @@ -7,7 +7,7 @@ type ProxyItem = [string, string];
7 7
8 type ProxyList = ProxyItem[]; 8 type ProxyList = ProxyItem[];
9 9
10 -type ProxyTargetList = Record<string, ProxyOptions & { rewrite: (path: string) => string }>; 10 +type ProxyTargetList = Record<string, ProxyOptions>;
11 11
12 const httpsRE = /^https:\/\//; 12 const httpsRE = /^https:\/\//;
13 13
src/views/sys/login/LoginForm.vue
@@ -135,11 +135,11 @@ @@ -135,11 +135,11 @@
135 try { 135 try {
136 loading.value = true; 136 loading.value = true;
137 const userInfo = await userStore.login( 137 const userInfo = await userStore.login(
138 - toRaw({ 138 + {
139 password: data.password, 139 password: data.password,
140 username: data.account, 140 username: data.account,
141 mode: 'none', //不要默认的错误提示 141 mode: 'none', //不要默认的错误提示
142 - }), 142 + },
143 ); 143 );
144 if (userInfo) { 144 if (userInfo) {
145 notification.success({ 145 notification.success({