fix(type): typo (#1281)

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

* fix(login): 删除登录时的 toRaw 包裹参数
This commit is contained in:
miofly 2021-10-12 11:49:50 +08:00 committed by GitHub
parent b653412260
commit 7a1b6e74ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -135,11 +135,11 @@
try { try {
loading.value = true; loading.value = true;
const userInfo = await userStore.login( const userInfo = await userStore.login(
toRaw({ {
password: data.password, password: data.password,
username: data.account, username: data.account,
mode: 'none', // mode: 'none', //
}), },
); );
if (userInfo) { if (userInfo) {
notification.success({ notification.success({