@lambo-design/login-form 1.0.0-beta.13 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/login-form.vue +8 -0
package/package.json
CHANGED
package/src/login-form.vue
CHANGED
|
@@ -237,6 +237,14 @@ export default {
|
|
|
237
237
|
params.pasSm3 = this.getCryptorPassword(this.form.password,this.form.validCode,'sm3');
|
|
238
238
|
}
|
|
239
239
|
this.$emit('show-slide-verify', true,params)
|
|
240
|
+
|
|
241
|
+
this.setLocalUserId(this.form.userName)
|
|
242
|
+
if (this.rememberMe == true) {
|
|
243
|
+
this.setLocalStorage(this.form.userName)
|
|
244
|
+
}
|
|
245
|
+
if (this.rememberMe == false) {
|
|
246
|
+
this.clearLocalStorage();
|
|
247
|
+
}
|
|
240
248
|
}else{
|
|
241
249
|
this.$Message.error("请输入用户名");
|
|
242
250
|
}
|