|
@@ -12,14 +12,12 @@
|
|
|
},
|
|
|
methods: {
|
|
|
async initData() {
|
|
|
- this.$mStore.dispatch('getCompetitionId')
|
|
|
// #ifdef H5
|
|
|
if (isWechat()) {
|
|
|
const url = window.location.href.split('#')[0];
|
|
|
await wxConfigH5(url);
|
|
|
}
|
|
|
// #endif
|
|
|
- const token = uni.getStorageSync('accessToken');
|
|
|
// 获取页面设置配置
|
|
|
if(process.env.NODE_ENV === 'production') {
|
|
|
const token = uni.getStorageSync('accessToken');
|
|
@@ -42,10 +40,6 @@
|
|
|
.catch(() => {
|
|
|
this.$mHelper.toast('获取用户失败');
|
|
|
})
|
|
|
- } else if (wxUser && !code) {
|
|
|
-
|
|
|
- } else if (wxUser && code) {
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|