n20-common-lib 1.3.151 → 1.3.152
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
CHANGED
|
@@ -280,11 +280,17 @@ export default {
|
|
|
280
280
|
this.$refs['login-form'].validate((valid) => {
|
|
281
281
|
if (!valid) return false
|
|
282
282
|
auth.removeToken()
|
|
283
|
-
this.beforeLogin
|
|
283
|
+
if(this.beforeLogin){
|
|
284
|
+
this.beforeLogin().then(() => {
|
|
285
|
+
this.theType === 'account' && this.passwordLogin()
|
|
286
|
+
this.theType === 'pthon' && this.phoneLogin()
|
|
287
|
+
this.theType === 'accountPthon' && this.accountPthonLogin()
|
|
288
|
+
})
|
|
289
|
+
} else {
|
|
284
290
|
this.theType === 'account' && this.passwordLogin()
|
|
285
291
|
this.theType === 'pthon' && this.phoneLogin()
|
|
286
292
|
this.theType === 'accountPthon' && this.accountPthonLogin()
|
|
287
|
-
}
|
|
293
|
+
}
|
|
288
294
|
|
|
289
295
|
})
|
|
290
296
|
},
|