fix 修复 取消oss预览状态修改 图标变化不正常问题

This commit is contained in:
疯狂的狮子Li 2023-04-14 22:29:42 +08:00
parent f9298a3f41
commit fed8eb76f6

View File

@ -316,16 +316,10 @@ const handleDownload = (row: OssVO) => {
/** 用户状态修改 */ /** 用户状态修改 */
const handlePreviewListResource = async (preview: boolean) => { const handlePreviewListResource = async (preview: boolean) => {
let text = preview ? "启用" : "停用"; let text = preview ? "启用" : "停用";
try { await proxy?.$modal.confirm('确认要"' + text + '""预览列表图片"配置吗?');
await proxy?.$modal.confirm('确认要"' + text + '""预览列表图片"配置吗?'); await proxy?.updateConfigByKey("sys.oss.previewListResource", preview);
await proxy?.updateConfigByKey("sys.oss.previewListResource", preview); getList()
getList() proxy?.$modal.msgSuccess(text + "成功");
proxy?.$modal.msgSuccess(text + "成功");
} catch {
previewListResource.value = previewListResource.value !== true;
}
} }
/** 删除按钮操作 */ /** 删除按钮操作 */
const handleDelete = async (row?: OssVO) => { const handleDelete = async (row?: OssVO) => {
@ -336,6 +330,7 @@ const handleDelete = async (row?: OssVO) => {
getList(); getList();
proxy?.$modal.msgSuccess("删除成功"); proxy?.$modal.msgSuccess("删除成功");
} }
onMounted(() => { onMounted(() => {
getList(); getList();
}) })