From 47b5af3d982038502e920126999b2d323d2777ed Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Wed, 3 Jun 2026 14:20:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93-=E5=88=86=E4=BA=AB-?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/knowledge/index.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/views/knowledge/index.vue b/src/views/knowledge/index.vue index 7e4d721..bca0c03 100644 --- a/src/views/knowledge/index.vue +++ b/src/views/knowledge/index.vue @@ -67,12 +67,7 @@ type="text" icon="el-icon-upload2" @click="openUploadTypeDialog" - v-if=" - (queryRightParams.cate_id == 0 && - queryRightParams.is_mine == 1) || - (queryRightParams.cate_id != 0 && - queryRightParams.is_mine === 0) - " + v-if="!(cate_id == 0 && (is_mine == 0 || is_mine == 2))" > 上传 @@ -336,6 +331,8 @@ export default { ], }, // 知识库右侧-查询参数 + cate_id: null, + is_mine: null, queryRightParams: { title: "", cate_id: 0, @@ -557,7 +554,8 @@ export default { postKnowledgeList(this.queryRightParams).then((res) => { this.list = res.data.list; this.queryRightParams.total = Number(res.data.total); - this.queryRightParams.is_mine = res.data.is_mine; + this.cate_id = res.data.cate_id; + this.is_mine = res.data.is_mine; console.log("知识库右侧-列表", this.queryRightParams); }); },