We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b2adf commit 21500bfCopy full SHA for 21500bf
src/api/admin/sys-post.js
@@ -38,8 +38,9 @@ export function updatePost(data, id) {
38
// 删除岗位
39
export function delPost(postId) {
40
return request({
41
- url: '/api/v1/post/' + postId,
42
- method: 'delete'
+ url: '/api/v1/post',
+ method: 'delete',
43
+ data: postId
44
})
45
}
46
src/views/admin/sys-post/index.vue
@@ -313,7 +313,7 @@ export default {
313
/** 删除按钮操作 */
314
handleDelete(row) {
315
// const postIds = row.postId || this.ids
316
- const Ids = (row.id && [row.id]) || this.ids
+ const Ids = (row.postId && [row.postId]) || this.ids
317
this.$confirm('是否确认删除岗位编号为"' + Ids + '"的数据项?', '警告', {
318
confirmButtonText: '确定',
319
cancelButtonText: '取消',
0 commit comments