CzRger 5 miesięcy temu
rodzic
commit
68e9f24ba5

+ 1 - 1
src/api/modules/manage/service.ts

@@ -27,7 +27,7 @@ export const outsideServiceFindByPage = (params: any) => handle({
 // 启用|停用
 export const outsideServiceStatusUpdate = (params: any) => handle({
   url: `/${suffix}/api/outsideService/statusUpdate`,
-  method: 'post',
+  method: 'get',
   params
 })
 // 详情

+ 1 - 1
src/views/manage/service/index.vue

@@ -199,7 +199,7 @@ const onStatus = (row, status) => {
     type: "warning",
   } as any).then(() => {
     state.query.loading = true
-    outsideServiceStatusUpdate({id: row.id, status}).then(res => {
+    outsideServiceStatusUpdate(proxy.$util.formatGetParam({id: row.id, status})).then(res => {
       ElMessage.success(status == 1 ? '启用成功!' : '禁用成功!')
       state.query.loading = false
       onSearch()