|
@@ -125,6 +125,7 @@ let formInline = reactive({
|
|
|
})
|
|
|
const formInlineHistory = storage.get('userInfo')
|
|
|
if (formInlineHistory) {
|
|
|
+ console.log(formInlineHistory)
|
|
|
formInline = reactive({ ...JSON.parse(formInlineHistory) })
|
|
|
}
|
|
|
const rules = {
|
|
@@ -160,7 +161,7 @@ const handleSubmit = (e: any) => {
|
|
|
message.destroyAll()
|
|
|
if (some.code == ResultEnum.SUCCESS) {
|
|
|
// 判断是否勾选自动登录
|
|
|
- if (autoLogin) {
|
|
|
+ if (autoLogin.value) {
|
|
|
storage.set('userInfo', JSON.stringify(formInline))
|
|
|
} else {
|
|
|
storage.remove('userInfo')
|