【更新】更新 issues 中 #I5TY0J 文件配置中修改了上传路径,但是缓存中没有更新问题,去掉前端上传成功后的提醒为刷新列表

pull/46/head
小诺 2022-10-14 14:13:32 +08:00 committed by 俞宝山
parent 4e78ba3143
commit e7a4834d6d
2 changed files with 6 additions and 6 deletions

View File

@ -84,7 +84,7 @@
fileApi
.fileUploadLocalReturnUrl(fileData)
.then(() => {
message.success('上传成功')
emit('successful')
})
.finally(() => {
uploadLoading.value = false
@ -98,7 +98,7 @@
fileApi
.fileUploadAliyunReturnUrl(fileData)
.then(() => {
message.success('上传成功')
emit('successful')
})
.finally(() => {
uploadLoading.value = false
@ -112,7 +112,7 @@
fileApi
.fileUploadTencentReturnUrl(fileData)
.then(() => {
message.success('上传成功')
emit('successful')
})
.finally(() => {
uploadLoading.value = false
@ -126,7 +126,7 @@
fileApi
.fileUploadMinioReturnUrl(fileData)
.then(() => {
message.success('上传成功')
emit('successful')
})
.finally(() => {
uploadLoading.value = false

View File

@ -151,7 +151,7 @@ public class DevConfigServiceImpl extends ServiceImpl<DevConfigMapper, DevConfig
}
devConfigList.forEach(devConfig -> {
// 移除对应的缓存
commonCacheOperator.remove(CONFIG_CACHE_KEY + devConfig.getConfigValue());
commonCacheOperator.remove(CONFIG_CACHE_KEY + devConfig.getConfigKey());
});
// 执行删除
this.removeBatchByIds(devConfigIdList);
@ -180,7 +180,7 @@ public class DevConfigServiceImpl extends ServiceImpl<DevConfigMapper, DevConfig
.eq(DevConfig::getConfigKey, devConfigBatchParam.getConfigKey())
.set(DevConfig::getConfigValue, devConfigBatchParam.getConfigValue()));
// 移除对应的缓存
commonCacheOperator.remove(CONFIG_CACHE_KEY + devConfigBatchParam.getConfigValue());
commonCacheOperator.remove(CONFIG_CACHE_KEY + devConfigBatchParam.getConfigKey());
});
}
}