兰宝车间质量管理系统-前端
疯狂的狮子li
2023-05-19 21ab064cf708e5dfc6da7f15f1c6a5cf5069e5c2
src/views/system/oss/index.vue
@@ -317,15 +317,11 @@
const handlePreviewListResource = async (preview: boolean) => {
    let text = preview ? "启用" : "停用";
    try {
        await proxy?.$modal.confirm('确认要"' + text + '""预览列表图片"配置吗?');
        await proxy?.updateConfigByKey("sys.oss.previewListResource", preview);
        getList()
        proxy?.$modal.msgSuccess(text + "成功");
    } catch {
        previewListResource.value = previewListResource.value !== true;
    }
      await proxy?.$modal.confirm('确认要"' + text + '""预览列表图片"配置吗?');
      await proxy?.updateConfigByKey("sys.oss.previewListResource", preview);
      getList()
      proxy?.$modal.msgSuccess(text + "成功");
    } catch { return }
}
/** 删除按钮操作 */
const handleDelete = async (row?: OssVO) => {
@@ -336,6 +332,7 @@
    getList();
    proxy?.$modal.msgSuccess("删除成功");
}
onMounted(() => {
    getList();
})