diff --git a/src/api/category/category.js b/src/api/category/category.js index da5857d..ba03a34 100644 --- a/src/api/category/category.js +++ b/src/api/category/category.js @@ -33,7 +33,7 @@ export function add(data) { } export function del(ids) { - const params = ids[0] + const params = { id: ids[0] } return request({ url: 'api/archives-type/delete-type', method: 'delete', diff --git a/src/api/category/fieldManage.js b/src/api/category/fieldManage.js index cf1f7c7..18e0c88 100644 --- a/src/api/category/fieldManage.js +++ b/src/api/category/fieldManage.js @@ -9,11 +9,11 @@ export function add(data) { } export function del(ids) { - const params = ids[0] + const params = { id: ids[0] } return request({ url: 'api/archives-type/delete-dic', method: 'delete', - id: params + params }) } diff --git a/src/views/category/descriptionPreview/index.vue b/src/views/category/descriptionPreview/index.vue index b3f63ed..2299284 100644 --- a/src/views/category/descriptionPreview/index.vue +++ b/src/views/category/descriptionPreview/index.vue @@ -28,7 +28,7 @@ 修改 排序 - +
@@ -42,7 +42,7 @@
- +