fix 修复 oss 配置 预览开关点×关闭控制台报错问题
This commit is contained in:
parent
84212c0a1b
commit
21ab064cf7
@ -316,10 +316,12 @@ const handleDownload = (row: OssVO) => {
|
|||||||
/** 用户状态修改 */
|
/** 用户状态修改 */
|
||||||
const handlePreviewListResource = async (preview: boolean) => {
|
const handlePreviewListResource = async (preview: boolean) => {
|
||||||
let text = preview ? "启用" : "停用";
|
let text = preview ? "启用" : "停用";
|
||||||
await proxy?.$modal.confirm('确认要"' + text + '""预览列表图片"配置吗?');
|
try {
|
||||||
await proxy?.updateConfigByKey("sys.oss.previewListResource", preview);
|
await proxy?.$modal.confirm('确认要"' + text + '""预览列表图片"配置吗?');
|
||||||
getList()
|
await proxy?.updateConfigByKey("sys.oss.previewListResource", preview);
|
||||||
proxy?.$modal.msgSuccess(text + "成功");
|
getList()
|
||||||
|
proxy?.$modal.msgSuccess(text + "成功");
|
||||||
|
} catch { return }
|
||||||
}
|
}
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
const handleDelete = async (row?: OssVO) => {
|
const handleDelete = async (row?: OssVO) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user