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> <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