Commit 2c4a4234 by wuqian

登录保存

parent 63391220
...@@ -103,6 +103,9 @@ const handleLogin = async () => { ...@@ -103,6 +103,9 @@ const handleLogin = async () => {
try { try {
loading.value = true loading.value = true
await userStore.login(loginForm) await userStore.login(loginForm)
if (loginForm.factoryCode) {
localStorage.setItem('factory_code', String(loginForm.factoryCode))
}
} catch (error) { } catch (error) {
// showError(error) // showError(error)
} finally { } finally {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment