Feat(云灵AI):界面初始化
This commit is contained in:
+3
-3
@@ -155,7 +155,7 @@ function pushSysBySecondsHandle() {
|
||||
}
|
||||
}
|
||||
if (statsData.length < 1) {
|
||||
console.log('*************没有页面埋点数据则不用上报,节约网络请求')
|
||||
// console.log('*************没有页面埋点数据则不用上报,节约网络请求')
|
||||
return
|
||||
}
|
||||
// 设备类型phone、pad、pc、unknow
|
||||
@@ -169,7 +169,7 @@ function pushSysBySecondsHandle() {
|
||||
deviceType: deviceType === 'phone' ? osName : 'unknown',
|
||||
statsData
|
||||
}
|
||||
console.log('开始上报数据-------------------')
|
||||
// console.log('开始上报数据-------------------')
|
||||
pushSystemStatic(postData).then(res => {
|
||||
const { success } = res
|
||||
if (success) {
|
||||
@@ -177,7 +177,7 @@ function pushSysBySecondsHandle() {
|
||||
for (const key in Vue.prototype.$pageToWatchData) {
|
||||
Vue.prototype.$pageToWatchData[key] = []
|
||||
}
|
||||
console.log('*************清除上次未登录缓存的页面埋点数据')
|
||||
// console.log('*************清除上次未登录缓存的页面埋点数据')
|
||||
uni.removeStorageSync(pageViewDataCacheKey)
|
||||
}
|
||||
}).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user