@lambo-design/login-form 1.0.0-beta.11 → 1.0.0-beta.12
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 +4 -0
package/package.json
CHANGED
package/src/login-form.vue
CHANGED
|
@@ -136,6 +136,7 @@ export default {
|
|
|
136
136
|
params.pasSm3 = this.getCryptorPassword(this.form.password,this.form.validCode,'sm3');
|
|
137
137
|
}
|
|
138
138
|
this.$emit('on-success-valid', params)
|
|
139
|
+
this.setLocalUserId(this.form.userName)
|
|
139
140
|
if (this.rememberMe == true) {
|
|
140
141
|
this.setLocalStorage(this.form.userName)
|
|
141
142
|
}
|
|
@@ -154,6 +155,9 @@ export default {
|
|
|
154
155
|
setLocalStorage(name) {
|
|
155
156
|
setLocalStorage("username", name);
|
|
156
157
|
},
|
|
158
|
+
setLocalUserId(name){
|
|
159
|
+
setLocalStorage('userId',name)
|
|
160
|
+
},
|
|
157
161
|
clearLocalStorage() {
|
|
158
162
|
removeLocalStorage("username");
|
|
159
163
|
}
|