|
@@ -25,6 +25,19 @@
|
|
|
const that = this;
|
|
|
let res = await that.$api(`/config`, 'GET', {});
|
|
|
if (res.errcode == '0') {
|
|
|
+ uni.getStorage({
|
|
|
+ key: 'token',
|
|
|
+ success: async (res) => {
|
|
|
+ let arr = await that.$api(`/user/cct`, 'POST');
|
|
|
+ if (arr.errcode == '0'){
|
|
|
+ uni.setStorage({
|
|
|
+ key: 'token',
|
|
|
+ data: arr.data,
|
|
|
+ success: function() {}
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
let config = res.data;
|
|
|
that.$set(that, `logoUrl`, config.config.logo[0].url);
|
|
|
uni.setStorage({
|