增加应用初次启动时清除全部缓存
This commit is contained in:
parent
18aedc57c2
commit
b1c9c15ea1
2
App.vue
2
App.vue
|
|
@ -2,10 +2,12 @@
|
||||||
import config from '@/common/config.js'
|
import config from '@/common/config.js'
|
||||||
import {isH5Android} from '@/utils/app.js'
|
import {isH5Android} from '@/utils/app.js'
|
||||||
import {init} from '@/utils/init.js'
|
import {init} from '@/utils/init.js'
|
||||||
|
import {cacheClearAll} from '@/store/cashe.js'
|
||||||
import store from './store/index.js'
|
import store from './store/index.js'
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
console.log('onLaunch')
|
console.log('onLaunch')
|
||||||
|
cacheClearAll()
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
//防止刷新过快
|
//防止刷新过快
|
||||||
if(process.env.NODE_ENV === 'production'){
|
if(process.env.NODE_ENV === 'production'){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue