|
@@ -1,11 +1,11 @@
|
|
|
import { fetchApi } from '@/apis/'
|
|
|
import { dc } from '@/conf/config'
|
|
|
|
|
|
-
|
|
|
export async function addItem (params) {
|
|
|
- const url = `${dc}/dc/web/edit-rule`;
|
|
|
+ const url = `${dc}/dc/web/edit-rule`
|
|
|
console.log(params)
|
|
|
- return fetchApi(url, {method:'POST',body:params})
|
|
|
+ return fetchApi(url, params)
|
|
|
+ // return fetchApi(url, {method:'POST',body:params})
|
|
|
}
|
|
|
|
|
|
export async function delItem (params) {
|
|
@@ -14,11 +14,13 @@ export async function delItem (params) {
|
|
|
}
|
|
|
|
|
|
export async function editItem (params) {
|
|
|
- const url = `${dc}/dc/web/edit-rule`;
|
|
|
- return fetchApi(url, {method:'POST',body:params})
|
|
|
+ const url = `${dc}/dc/web/edit-rule`
|
|
|
+ return fetchApi(url, params)
|
|
|
+ // return fetchApi(url, {method:'POST',body:params})
|
|
|
}
|
|
|
|
|
|
export async function execItem (params) {
|
|
|
- const url = `${dc}/dc/data-center/command`;
|
|
|
- return fetchApi(url, {method:'POST',body:params})
|
|
|
+ const url = `${dc}/dc/data-center/command`
|
|
|
+ return fetchApi(url, params)
|
|
|
+ // return fetchApi(url, {method:'POST',body:params})
|
|
|
}
|