guhongwei 5 years ago
parent
commit
5352e20227
1 changed files with 4 additions and 0 deletions
  1. 4 0
      store/notice.js

+ 4 - 0
store/notice.js

@@ -19,6 +19,10 @@ const actions = {
     const res = await this.$axios.$post(`${api.noticeInfo}`, payload);
     return res;
   },
+  async fetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.noticeInfo}/${payload}`);
+    return res;
+  },
   async lookFetch({ commit }, payload) {
     const res = await this.$axios.$post(`${api.lookInfo}`, payload);
     return res;