小程序公告详情

This commit is contained in:
yanran200730
2021-12-16 15:07:56 +08:00
parent 0ed6cdb32e
commit f6ec0d0d96
3 changed files with 72 additions and 2 deletions

View File

@@ -9,6 +9,7 @@
<script>
import List from './components/List'
import Add from './components/Add'
import Detail from './components/Detail'
export default {
name: 'AppNotice',
@@ -29,7 +30,8 @@
components: {
Add,
List
List,
Detail
},
mounted () {
@@ -42,6 +44,11 @@
this.params = data.params
}
if (data.type === 'Detail') {
this.component = 'Detail'
this.params = data.params
}
if (data.type === 'list') {
this.component = 'List'
this.params = data.params