|
@@ -117,7 +117,7 @@ const publish = (row: any, status: number) => {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- await api.publish({ id: row.id, status, menuId: row.menuId || undefined })
|
|
|
|
|
|
+ await api.publish({ id: row.id, status})
|
|
ElMessage.success(`${status === 1 ? '发布' : '取消发布'}成功`)
|
|
ElMessage.success(`${status === 1 ? '发布' : '取消发布'}成功`)
|
|
getList(1)
|
|
getList(1)
|
|
})
|
|
})
|