From 7b2fffec6f45d2b5d4c827efbeee4a2e21c0adc0 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期四, 21 九月 2023 16:52:20 +0800 Subject: [PATCH] 9.21 --- src/components/view/rawInsBox.vue | 58 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/components/view/rawInsBox.vue b/src/components/view/rawInsBox.vue index 57710f5..aec0ed9 100644 --- a/src/components/view/rawInsBox.vue +++ b/src/components/view/rawInsBox.vue @@ -1,37 +1,37 @@ - <style scoped> </style> <template> - <div class="rawInsBox"> - <RawIns v-if="!showDetail" :goDetail="goDetail"></RawIns> - <RawInsDetail v-if="showDetail" :goBack="goBack" :detailId="id"></RawInsDetail> - </div> + <div class="rawInsBox"> + <RawIns v-if="!showDetail" :goDetail="goDetail"></RawIns> + <RawInsDetail v-if="showDetail" :goBack="goBack" :detailId="id"></RawInsDetail> + </div> </template> <script> -import RawIns from './raw-ins.vue' -import RawInsDetail from './rawInsDetail.vue' -export default { - components:{RawIns,RawInsDetail}, - data() { - return { - showDetail: false, - id:0 - } - }, - mounted(){ - }, - methods:{ - goDetail(id) { - this.showDetail = true - this.id = id - console.log(this.id) - }, - goBack() { - this.showDetail = false - } - } -} -</script> + import RawIns from './raw-ins.vue' + import RawInsDetail from './rawInsDetail.vue' + export default { + components: { + RawIns, + RawInsDetail + }, + data() { + return { + showDetail: false, + id: 0 + } + }, + mounted() {}, + methods: { + goDetail(id) { + this.showDetail = true + this.id = id + }, + goBack() { + this.showDetail = false + } + } + } +</script> \ No newline at end of file -- Gitblit v1.9.3