增加应用初次启动时清除全部缓存

This commit is contained in:
YeMingfei666 2025-01-09 16:55:58 +08:00
parent 18aedc57c2
commit b1c9c15ea1
1 changed files with 2 additions and 0 deletions

View File

@ -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'){