From 9cdfad9f16507ea430dd6bebd2ef158a828b482d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=99?= <615206459@qq.com> Date: Mon, 22 Jul 2024 23:13:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/helper/views/plugins/serve.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/helper/views/plugins/serve.vue b/src/modules/helper/views/plugins/serve.vue index 278655f..964ceca 100644 --- a/src/modules/helper/views/plugins/serve.vue +++ b/src/modules/helper/views/plugins/serve.vue @@ -114,7 +114,7 @@ import { ElMessage, ElMessageBox } from "element-plus"; import { Plus, Setting } from "@element-plus/icons-vue"; import { marked } from "marked"; import { useForm } from "@cool-vue/crud"; -import { isString, merge, template } from "lodash-es"; +import { merge, template } from "lodash-es"; const { service, refs, setRefs } = useCool(); const Form = useForm(); @@ -195,8 +195,9 @@ function toSet(item: Eps.PluginInfoEntity) { service.plugin.info .update({ - ...data, - config + config, + id: data.id, + status: data.status }) .then(() => { ElMessage.success("修改成功");