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

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

@@ -76,8 +76,8 @@ function callback() {
}
}
export async function init() {
if($cache_config.isEmpty()){
export async function init(isNowRequest=false) {
if(!$cache_config||$cache_config.isEmpty()||isNowRequest){
httpsRequest.getT('/app/common/getAppUseKv').then(res => {
console.log(res);
if (res.code == 0) {