|
|
@@ -1,7 +1,7 @@
|
|
|
<script>
|
|
|
import { mapMutations, mapActions, mapGetters } from 'vuex'
|
|
|
import { setTimeout } from 'timers'
|
|
|
-import { getCheckLogin, getUser, wxLoginFn } from '@/utils/auth'
|
|
|
+import { getUser, wxLoginFn } from '@/utils/auth'
|
|
|
export default {
|
|
|
// 全端,数据共享,还可以解决页面初始化模板访问不到值得问题
|
|
|
// 有坑 分包里的页面访问不到
|
|
|
@@ -18,13 +18,13 @@ export default {
|
|
|
uni.setStorageSync('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp0aSI6IjFfMTI1MzY2MzAifQ.eyJpc3MiOiJodHRwOlwvXC9tLmhoYi5jb20iLCJhdWQiOiJodHRwOlwvXC9tLmhoYi5jb20iLCJqdGkiOiIxXzEyNTM2NjMwIiwiaWF0IjoxNTc0NDIzMDc4LCJuYmYiOjE1NzQ0MjMwNzgsImV4cCI6MTU3NDQyNjY3OCwidXNlcklkIjoxMjUzNjYzMH0.v_T9NuFRpzuI7GtwuuuNlVg6EylImaCUwqo2A6NRTE4')
|
|
|
uni.setStorageSync('account', '12358')
|
|
|
// 登录
|
|
|
- if (this.$constant.source == 'business') {
|
|
|
- getCheckLogin().then(res => {
|
|
|
- if (res) {
|
|
|
- getUser()
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (this.$constant.source == 'business') {
|
|
|
+ this.$util.getCheckLogin().then(res => {
|
|
|
+ if (res) {
|
|
|
+ getUser()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // }
|
|
|
},
|
|
|
onShow() {
|
|
|
// this.isLogin()
|