This commit is contained in:
weipengfei 2024-03-26 18:07:58 +08:00
parent 2244c6edac
commit bc4a352a2d
2 changed files with 18 additions and 19 deletions

31
App.vue
View File

@ -120,23 +120,22 @@
if (option?.referrerInfo?.extraData?.uniMP) {
uni.setStorageSync('uniMP', option.referrerInfo?.extraData?.uniMP);
parseToken({
token: option.referrerInfo?.extraData?.token
}).then((res)=>{
this.$store.commit("LOGIN", {
'token': res.data.token,
'time': 604800
});
this.$isResolve()
// parseToken({
// token: option.referrerInfo?.extraData?.token
// }).then((res)=>{
// this.$store.commit("LOGIN", {
// 'token': res.data.token,
// 'time': 604800
// });
// this.$isResolve()
// }).catch((err)=>{
// this.$store.commit("LOGIN", {
// 'token': option.referrerInfo?.extraData?.token,
// 'time': 604800
// });
// console.log('TOKEN:', err);
// this.$isResolve()
// })
}).catch((err)=>{
this.$store.commit("LOGIN", {
'token': option.referrerInfo?.extraData?.token,
'time': 604800
});
console.log('TOKEN解析错误:', err);
this.$isResolve()
})
}else {
this.$isResolve()
}

View File

@ -2,8 +2,8 @@
"name" : "惠农商户平台",
"appid" : "__UNI__1EE148C",
"description" : "",
"versionName" : "1.4.0",
"versionCode" : 1400,
"versionName" : "1.4.3",
"versionCode" : 1430,
"transformPx" : false,
/* 5+App */
"app-plus" : {