guhongwei 5 年之前
父节点
当前提交
5352e20227
共有 1 个文件被更改,包括 4 次插入0 次删除
  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;