Commit 08854582 by zhangxw

清除缓存中的车型数据

1 parent f1a20b7d
......@@ -53,6 +53,7 @@ Page({
wx.$storage.rm('auto_login_object')
wx.$storage.rm('posterId')
wx.$storage.rm('mock_data')
wx.$storage.rm('car_brand_list')
wx.$storage.set('firstLogin', 'firstLogin')
wx.$storage.set('disLikeRecordFlag', true)
this.accountLogin(obj)
......@@ -144,11 +145,13 @@ Page({
})
if (reload) {
wx.$storage.rm('auto_login_object')
wx.$storage.rm('car_brand_list')
wx.$router.reLaunch('login.index', obj)
}
} catch (error) {
console.log(`error`, error);
wx.$storage.rm('auto_login_object')
wx.$storage.rm('car_brand_list')
wx.$router.reLaunch('login.index', obj)
}
}
......
......@@ -33,6 +33,7 @@ Page({
wx.$storage.rm('sessionId')
wx.$storage.rm('userInfo')
wx.$storage.rm('auto_login_object')
wx.$storage.rm('car_brand_list')
wx.$router.reLaunch('login.index')
})
}
......
......@@ -98,6 +98,7 @@ Page({
wx.$storage.rm('auto_login_object')
wx.$storage.rm('posterId')
wx.$storage.rm('mock_data')
wx.$storage.rm('car_brand_list')
wx.$router.reLaunch('login.index')
})
}
......
......@@ -21,13 +21,13 @@ const h5Obj = {
2测试
3生产
*/
let index = 1
let index = 2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
// console.log(systemInfo);
// console.log(accountInfo.miniProgram.envVersion)
//手动控制体验版环境的请求 true就依据下面index false就默认为2
const manual = true
const manual = false
const release = false
// let index = 1
......
......@@ -58,6 +58,7 @@ class Request {
if (code == 20 || code == 21) {
wx.$storage.rm('sessionId')
wx.$storage.rm('userInfo')
wx.$storage.rm('car_brand_list')
let thisPage = wx.$router.getPageInstance(),
autoLoginObject = wx.$storage.get('auto_login_object')
if (thisPage.route == 'login/loading/loading') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!