修复站内消息推送的一些小问题

This commit is contained in:
hr1201 2024-11-25 14:35:41 +08:00
parent 22deeab866
commit 098ddef534
2 changed files with 3 additions and 2 deletions

View File

@ -79,7 +79,7 @@ const getDetail = async(id? : number) => {
// //
const openDialog = (id?: any) => { const openDialog = (id?: any) => {
console.log(id) console.log(id)
state.dialog.isShowDialog = true; state.dialog.isShowDialog = true;
state.dialog.title = '人才信息'; state.dialog.title = '人才信息';
getDetail(id); getDetail(id);
}; };

View File

@ -77,7 +77,7 @@ const mspApi = messagePushApi();
const getTableData = async () => { const getTableData = async () => {
try { try {
state.tableData.loading = true; state.tableData.loading = true;
let res = await mspApi.getAttachmentList(state.tableData.param); let res = await mspApi.getMessagePushList(state.tableData.param);
if (res?.success) { if (res?.success) {
state.tableData.data = res.data.records; state.tableData.data = res.data.records;
state.tableData.total = res.data.total; state.tableData.total = res.data.total;
@ -85,6 +85,7 @@ const getTableData = async () => {
ElMessage.error('消息列表获取失败!'); ElMessage.error('消息列表获取失败!');
} }
} catch (error) { } catch (error) {
console.log(error)
ElMessage.error('数据加载失败!'); ElMessage.error('数据加载失败!');
} finally { } finally {
state.tableData.loading = false; state.tableData.loading = false;