diff --git a/.env b/.env index 08db500..9472ed5 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_BASE_URL=http://127.0.0.1:8899 \ No newline at end of file +VITE_BASE_URL=http://192.168.1.111:8899 \ No newline at end of file diff --git a/src/api/info.js b/src/api/info.js index db1dab8..07f5ba8 100644 --- a/src/api/info.js +++ b/src/api/info.js @@ -13,3 +13,33 @@ export const coreListApi = () => { method: 'GET', }) } + +export const addStationApi = data => { + return request({ + url: '/station/add', + method: 'POST', + data, + }) +} + +export const addCoreApi = data => { + return request({ + url: '/core/add', + method: 'POST', + data, + }) +} + +export const delStationApi = id => { + return request({ + url: `/station/delete/${id}`, + method: 'POST', + }) +} + +export const delCoreApi = id => { + return request({ + url: `/core/delete/${id}`, + method: 'POST', + }) +} diff --git a/src/components/Nuclear.vue b/src/components/Nuclear.vue index eac118a..78e8708 100644 --- a/src/components/Nuclear.vue +++ b/src/components/Nuclear.vue @@ -16,7 +16,34 @@ :onClose="stationClose" > @@ -47,7 +74,52 @@ :onClose="coreClose" >