@lambo-design/login-form 1.0.0-beta.13 → 1.0.0-beta.15
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 -2
package/package.json
CHANGED
package/src/login-form.vue
CHANGED
|
@@ -66,12 +66,10 @@ import {getLocalStorage, removeLocalStorage, setLocalStorage} from "@lambo-desig
|
|
|
66
66
|
import {guid} from "@lambo-design/shared/utils/number";
|
|
67
67
|
import crypto from "@lambo-design/shared/utils/crypto"
|
|
68
68
|
import ajax from "@lambo-design/shared/utils/ajax";
|
|
69
|
-
import slideVerify from '@/view/login/slide-verify/src/slide-verify';
|
|
70
69
|
|
|
71
70
|
export default {
|
|
72
71
|
name: 'LoginForm',
|
|
73
72
|
components:{
|
|
74
|
-
slideVerify,
|
|
75
73
|
},
|
|
76
74
|
props: {
|
|
77
75
|
userNameRules: {
|
|
@@ -237,6 +235,14 @@ export default {
|
|
|
237
235
|
params.pasSm3 = this.getCryptorPassword(this.form.password,this.form.validCode,'sm3');
|
|
238
236
|
}
|
|
239
237
|
this.$emit('show-slide-verify', true,params)
|
|
238
|
+
|
|
239
|
+
this.setLocalUserId(this.form.userName)
|
|
240
|
+
if (this.rememberMe == true) {
|
|
241
|
+
this.setLocalStorage(this.form.userName)
|
|
242
|
+
}
|
|
243
|
+
if (this.rememberMe == false) {
|
|
244
|
+
this.clearLocalStorage();
|
|
245
|
+
}
|
|
240
246
|
}else{
|
|
241
247
|
this.$Message.error("请输入用户名");
|
|
242
248
|
}
|