|
@@ -45,21 +45,21 @@
|
|
|
|
|
|
isLoading: false,
|
|
|
|
|
|
- id: this.$route.query.id,
|
|
|
+ id: '',
|
|
|
detail: [],
|
|
|
|
|
|
noticeList: [],
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
-
|
|
|
+ this.id = this.$route.query.id ? this.$route.query.id : '';
|
|
|
},
|
|
|
methods: {
|
|
|
//获取详情
|
|
|
getDetail(id) {
|
|
|
- var id = id || this.id;
|
|
|
+ this.id = id || this.id;
|
|
|
this.isLoading = true;
|
|
|
- API_Notice.getMessageInfo(id).then(response => {
|
|
|
+ API_Notice.getMessageInfo(this.id).then(response => {
|
|
|
|
|
|
this.detail = response;
|
|
|
|