提交 83f22a30 authored 作者: lidongxu's avatar lidongxu

fix(login): loginByType 从函数表达式改成函数

上级 fe88cb99
...@@ -142,7 +142,7 @@ async function checkAutoLogin() { ...@@ -142,7 +142,7 @@ async function checkAutoLogin() {
const code = await fsClientAuth() const code = await fsClientAuth()
return loginByType('fs', { code }) return loginByType('fs', { code })
} }
const state = getQueryString('state') const state = getQueryString('state')
const code = getQueryString('code') const code = getQueryString('code')
if (state === 'fs') { if (state === 'fs') {
...@@ -156,7 +156,7 @@ async function checkAutoLogin() { ...@@ -156,7 +156,7 @@ async function checkAutoLogin() {
checkAutoLogin() checkAutoLogin()
// code 免账号密码登录 // code 免账号密码登录
const loginByType = async (type, data) => { async function loginByType(type, data) {
// 登录 // 登录
userStore.login({ userStore.login({
type, type,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论