This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-03-18 16:05:58 +08:00
parent 069dba3a17
commit cb0aee5cd5
1 changed files with 46 additions and 44 deletions

12
App.vue
View File

@ -1,6 +1,6 @@
<script>
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB ]
// | CRMEB [ CRMEB ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
@ -32,7 +32,9 @@
history
} from '@/api/public.js'
import Routine from './libs/routine.js';
import { Toast } from "./libs/uniApi";
import {
Toast
} from "./libs/uniApi";
export default {
data() {
@ -126,13 +128,13 @@
// });
parseToken({
token: option.referrerInfo?.extraData?.token
}).then((res)=>{
}).then((res) => {
this.$store.commit("LOGIN", {
'token': res.data.token,
'time': 604800
});
this.$isResolve()
}).catch((err)=>{
}).catch((err) => {
this.$store.commit("LOGIN", {
'token': option.referrerInfo?.extraData?.token,
'time': 604800
@ -140,7 +142,7 @@
console.log('TOKEN解析错误:', err);
this.$isResolve()
})
}else {
} else {
this.$isResolve()
}
// #ifdef APP-PLUS