出入码小程序刷新请求完成;优化调试输出;添加出入码接口mock;配置业务域名SSL证书
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view v-if="debugMode">
|
||||
<button @tap='debugCleanCache'>清除缓存</button>
|
||||
<textarea maxlength="-1" disabled="true" auto-height="true" :value="debugText"></textarea>
|
||||
<textarea maxlength="-1" disabled="true" auto-height="true" style="width: 100%" :value="debugText"></textarea>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -12,22 +12,25 @@ import { eventCenter, getCurrentInstance } from '@tarojs/taro'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
userInfo: null,
|
||||
debugMode: Taro.getApp().globalData.debugMode,
|
||||
debugText: "",
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
eventCenter.once(getCurrentInstance().router.onShow, () => {
|
||||
this.userInfo = Taro.getStorageSync("userInfo");
|
||||
this.displayUsername = this.userInfo?.username ?? "请登录";
|
||||
const res = Taro.getStorageInfoSync()
|
||||
let storage = {};
|
||||
res.keys.forEach(key => storage[key] = Taro.getStorageSync(key))
|
||||
this.debugText = JSON.stringify({
|
||||
"TARO_ENV": process.env.TARO_ENV,
|
||||
// "isVisitor": this.isVisitor,
|
||||
// "isUser": this.isUser,
|
||||
// "isAdmin": this.isAdmin,
|
||||
"userInfo": this.userInfo || 'null'
|
||||
}, null, 4)
|
||||
TARO_ENV: process.env.TARO_ENV,
|
||||
globalData: Taro.getApp().globalData,
|
||||
storage: storage,
|
||||
// storageInfo: {
|
||||
// keys: res.keys,
|
||||
// currentSize: res.currentSize,
|
||||
// limitSize: res.limitSize
|
||||
// },
|
||||
}, null, 8)
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
Reference in New Issue
Block a user