From 4e95e01552a5725179b185f349fe49b03de1ecd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Fri, 18 Apr 2025 16:13:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor(knowledge):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 visible 数据属性的初始值设为 false - 移除了未使用的 console.log 和注释代码 -优化了表单提交逻辑,根据 radio 值决定是否返回上一页 --- src/views/knowledge/detail/create.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/views/knowledge/detail/create.vue b/src/views/knowledge/detail/create.vue index 60cbf45..4f47e0c 100644 --- a/src/views/knowledge/detail/create.vue +++ b/src/views/knowledge/detail/create.vue @@ -50,7 +50,7 @@ export default { name: 'create', data() { return { - visible: true, + visible: false, active: 0, documentId: '1362161577009188864' } @@ -74,12 +74,6 @@ export default { }) }, getForm(form) { - console.log(form) - // if (form.beMinerU) { - // this.beMinerU() - // } else { - // this.saveMarkDown() - // } if (form.radio === '2') { this.$router.go(-1) sessionStorage.setItem('documentId', this.documentId)