diff --git a/ruoyi-ui/src/views/officialWebsite/Components/page/index.vue b/ruoyi-ui/src/views/officialWebsite/Components/page/index.vue index ac820ab..d43bdf3 100644 --- a/ruoyi-ui/src/views/officialWebsite/Components/page/index.vue +++ b/ruoyi-ui/src/views/officialWebsite/Components/page/index.vue @@ -64,12 +64,16 @@ export default { initPageData() { // console.log(1, this.queryParams) // console.log(this.queryParams.pageNum) - getPageData(this.queryParams).then(res => { - // console.log('列表',res) - this.listinfo = res.data.list; - this.total =res.data.total; - this.$emit('event-message', this.listinfo) - }) + if (this.queryParams.categoryId !== ''){ + getPageData(this.queryParams).then(res => { + // console.log('列表',res) + this.listinfo = res.data.list; + this.total =res.data.total; + this.$emit('event-message', this.listinfo) + }) + }else { + this.$emit('event-message', []) + } }, }, } diff --git a/ruoyi-ui/src/views/officialWebsite/committee.vue b/ruoyi-ui/src/views/officialWebsite/committee.vue index c8fd11a..6ab4998 100644 --- a/ruoyi-ui/src/views/officialWebsite/committee.vue +++ b/ruoyi-ui/src/views/officialWebsite/committee.vue @@ -21,29 +21,29 @@ -