mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2026-03-22 10:47:16 +08:00
【更新】更新 issues 中 #I5TY0J 文件配置中修改了上传路径,但是缓存中没有更新问题,去掉前端上传成功后的提醒为刷新列表
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user