yxk-20260714
我的待阅:点击“已阅”现在会直接标记已阅,不再弹确认框。
This commit is contained in:
@@ -68,11 +68,7 @@
|
||||
if (props.showReadAction) {
|
||||
actions.push({
|
||||
label: '已阅',
|
||||
popConfirm: {
|
||||
title: '确定标记为已阅吗?',
|
||||
placement: 'left',
|
||||
confirm: handleRead.bind(null, record),
|
||||
},
|
||||
onClick: handleRead.bind(null, record),
|
||||
});
|
||||
}
|
||||
return actions;
|
||||
|
||||
@@ -15,4 +15,4 @@ export const list = (params) => defHttp.get({ url: Api.list, params });
|
||||
* 标记已阅
|
||||
* @param id 抄送记录ID
|
||||
*/
|
||||
export const markRead = (id) => defHttp.put({ url: Api.read, params: { id } });
|
||||
export const markRead = (id) => defHttp.put({ url: Api.read, params: { id } }, { joinParamsToUrl: true });
|
||||
|
||||
Reference in New Issue
Block a user