From b100c4f560f62a40e14f45db6861f2e96cc2e16b Mon Sep 17 00:00:00 2001 From: liulingling.177216 <liulingling@halosee.com> Date: 星期二, 21 一月 2025 10:14:39 +0800 Subject: [PATCH] 完善了知识库相关的功能 --- zhitan-vue/src/views/policy/knowledgebase/knowledgeBase.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/zhitan-vue/src/views/policy/knowledgebase/knowledgeBase.vue b/zhitan-vue/src/views/policy/knowledgebase/knowledgeBase.vue index e8f32a2..ac9cc39 100644 --- a/zhitan-vue/src/views/policy/knowledgebase/knowledgeBase.vue +++ b/zhitan-vue/src/views/policy/knowledgebase/knowledgeBase.vue @@ -52,7 +52,7 @@ <script setup> import EditModal from "./components/EditModal.vue" -import { knowledgeBaseList, knowledgeBaseDel } from "@/api/policy/knowledgeBase" +import { knowledgeBaseList, knowledgeBaseDel,knowledgeBaseInfo } from "@/api/policy/knowledgeBase" let { proxy } = getCurrentInstance() const types = ref([ { label: "鐢�", value: 0 }, @@ -85,7 +85,14 @@ let EditModalRef = ref("") function handleAdd(row) { if (EditModalRef.value) { - EditModalRef.value.handleOpen(row) + if(row.id){ + knowledgeBaseInfo(row.id).then((res) => { + EditModalRef.value.handleOpen(res.data) + }) + }else{ + EditModalRef.value.handleOpen(row) + } + } } -- Gitblit v1.9.3