This commit is contained in:
parent
069dba3a17
commit
cb0aee5cd5
12
App.vue
12
App.vue
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ] 测试分指
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
@ -32,7 +32,9 @@
|
||||||
history
|
history
|
||||||
} from '@/api/public.js'
|
} from '@/api/public.js'
|
||||||
import Routine from './libs/routine.js';
|
import Routine from './libs/routine.js';
|
||||||
import { Toast } from "./libs/uniApi";
|
import {
|
||||||
|
Toast
|
||||||
|
} from "./libs/uniApi";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -126,13 +128,13 @@
|
||||||
// });
|
// });
|
||||||
parseToken({
|
parseToken({
|
||||||
token: option.referrerInfo?.extraData?.token
|
token: option.referrerInfo?.extraData?.token
|
||||||
}).then((res)=>{
|
}).then((res) => {
|
||||||
this.$store.commit("LOGIN", {
|
this.$store.commit("LOGIN", {
|
||||||
'token': res.data.token,
|
'token': res.data.token,
|
||||||
'time': 604800
|
'time': 604800
|
||||||
});
|
});
|
||||||
this.$isResolve()
|
this.$isResolve()
|
||||||
}).catch((err)=>{
|
}).catch((err) => {
|
||||||
this.$store.commit("LOGIN", {
|
this.$store.commit("LOGIN", {
|
||||||
'token': option.referrerInfo?.extraData?.token,
|
'token': option.referrerInfo?.extraData?.token,
|
||||||
'time': 604800
|
'time': 604800
|
||||||
|
@ -140,7 +142,7 @@
|
||||||
console.log('TOKEN解析错误:', err);
|
console.log('TOKEN解析错误:', err);
|
||||||
this.$isResolve()
|
this.$isResolve()
|
||||||
})
|
})
|
||||||
}else {
|
} else {
|
||||||
this.$isResolve()
|
this.$isResolve()
|
||||||
}
|
}
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
|
|
Loading…
Reference in New Issue