|
|
@@ -27,22 +27,19 @@ export default {
|
|
|
if (option.account) {
|
|
|
uni.setStorageSync('account', option.account)
|
|
|
}
|
|
|
+
|
|
|
uni.setStorageSync('currentQuery', JSON.stringify(option))
|
|
|
if (isLogin() == false) {
|
|
|
- if (this.init) {
|
|
|
- // if (constant.source == 'store') {
|
|
|
- // getUser()
|
|
|
- // }
|
|
|
- this.init()
|
|
|
- }
|
|
|
+
|
|
|
wxLoginFn().then(res => {
|
|
|
getUser()
|
|
|
})
|
|
|
- } else {
|
|
|
- if (this.init) {
|
|
|
- this.init()
|
|
|
- }
|
|
|
}
|
|
|
+
|
|
|
+ if (this.init) {
|
|
|
+ this.init()
|
|
|
+ }
|
|
|
+
|
|
|
// getCheckLogin().then(res => {
|
|
|
// if (constant.source == 'store') {
|
|
|
// if (res) {
|