增加登录成功时清除全部缓存,重新请求配置文件

This commit is contained in:
2025-01-07 17:18:16 +08:00
parent c734bdffdd
commit e5bf7116ea
2 changed files with 5 additions and 3 deletions

View File

@@ -43,6 +43,7 @@
<script>
import {init} from '@/utils/init.js'
import {cacheClearAll} from '@/store/cashe.js'
export default {
data() {
return {
@@ -308,7 +309,8 @@
icon: 'none'
})
const arr= getCurrentPages()
init()
cacheClearAll()
init(true)
uni.reLaunch({
url:'/pages/index/index'
})