diff --git a/src/views/modules/news/notice-add-or-update.vue b/src/views/modules/news/notice-add-or-update.vue index 028ffbe..a70ef58 100644 --- a/src/views/modules/news/notice-add-or-update.vue +++ b/src/views/modules/news/notice-add-or-update.vue @@ -36,7 +36,7 @@
- +
{}) }, getModuleCategoryList () { - this.$http.get('/news/modulecategory/list').then(({ data: res }) => { + this.$http.get('/news/modulecategory/getListToShow').then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } diff --git a/src/views/modules/news/notice.vue b/src/views/modules/news/notice.vue index f94eaf8..bf70dbb 100644 --- a/src/views/modules/news/notice.vue +++ b/src/views/modules/news/notice.vue @@ -12,7 +12,7 @@
- +
@@ -135,6 +135,8 @@ export default { 'noticeCategoryList': function (val) { if (val.length !== 0) { this.dataForm.noticeCategory = val[val.length - 1] + } else { + this.dataForm.noticeCategory = '' } } }, @@ -194,7 +196,7 @@ export default { }).catch(() => {}) }, getModuleCategoryList () { - this.$http.get('/news/modulecategory/list').then(({ data: res }) => { + this.$http.get('/news/modulecategory/getListToShow').then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) }