|
@@ -112,6 +112,10 @@ export default {
|
|
|
methods: {
|
|
|
...notice(['fetch', 'lookFetch']),
|
|
|
async search() {
|
|
|
+ if (!this.noticeid) {
|
|
|
+ this.$toast.fail('没有消息相关信息,无法找到消息来源');
|
|
|
+ return;
|
|
|
+ }
|
|
|
const res = await this.fetch(this.noticeid);
|
|
|
if (res.errcode == '0') {
|
|
|
this.$set(this, `notice`, res.data);
|