This commit is contained in:
parent
069dba3a17
commit
cb0aee5cd5
12
App.vue
12
App.vue
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue