From f1cbb246ff9b997e4d3d5bae061da374a3e0f398 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期四, 14 九月 2023 13:44:27 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/components/view/rawInsBox.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/view/rawInsBox.vue b/src/components/view/rawInsBox.vue index 352e496..57710f5 100644 --- a/src/components/view/rawInsBox.vue +++ b/src/components/view/rawInsBox.vue @@ -5,8 +5,8 @@ <template> <div class="rawInsBox"> - <RawIns v-show="!showDetail" :goDetail="goDetail"></RawIns> - <RawInsDetail v-show="showDetail" :goBack="goBack" :detail="detail"></RawInsDetail> + <RawIns v-if="!showDetail" :goDetail="goDetail"></RawIns> + <RawInsDetail v-if="showDetail" :goBack="goBack" :detailId="id"></RawInsDetail> </div> </template> @@ -18,13 +18,16 @@ data() { return { showDetail: false, - detail:{} + id:0 } }, + mounted(){ + }, methods:{ - goDetail(detail) { + goDetail(id) { this.showDetail = true - this.detail = detail + this.id = id + console.log(this.id) }, goBack() { this.showDetail = false -- Gitblit v1.9.3