1
0
Эх сурвалжийг харах

fix(type): typo (#1281)

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

* fix(login): 删除登录时的 toRaw 包裹参数
miofly 3 жил өмнө
parent
commit
7a1b6e74ab

+ 1 - 1
build/vite/proxy.ts

@@ -7,7 +7,7 @@ type ProxyItem = [string, string];
 
 type ProxyList = ProxyItem[];
 
-type ProxyTargetList = Record<string, ProxyOptions & { rewrite: (path: string) => string }>;
+type ProxyTargetList = Record<string, ProxyOptions>;
 
 const httpsRE = /^https:\/\//;
 

+ 2 - 2
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({