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

View File

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