Unverified 提交 7a1b6e74 作者: miofly 提交者: GitHub

fix(type): typo (#1281)

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

* fix(login): 删除登录时的 toRaw 包裹参数
上级 b6534122
...@@ -7,7 +7,7 @@ type ProxyItem = [string, string]; ...@@ -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:\/\//;
......
...@@ -135,11 +135,11 @@ ...@@ -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({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论