fix:mitt完成公告同步

This commit is contained in:
宋文超
2022-11-28 12:46:39 +08:00
parent f85ee37ca0
commit ec9b277609
5 changed files with 26 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
import { reactive, toRefs, onMounted } from "vue";
import { getTask } from "../../api/indexTaskadd";
import { noticeList } from "../../api/indexNotice";
import emitter from "../../utils/bus";
// import { toDate } from "../../api/method";
export default {
name: "NoticeHis",
@@ -47,6 +48,11 @@ export default {
//下一步是把公告赋值给state.notice
});
};
//获取公告历史
emitter.on("setNotice", (data) => {
console.log("setNotice", data);
getNotice();
});
const setNoticeData = (tableData) => {
let data = tableData;
let array = [];