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;