diff --git a/.env.production b/.env.production index c4c416d..ce4413b 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,2 @@ -VITE_BASE_URL = 'http://192.168.1.3:48081' -VITE_SOCKET_SERVER = 'http://192.168.1.3:48081' \ No newline at end of file +VITE_BASE_URL = 'http://62.234.18.176:48081' +VITE_SOCKET_SERVER = 'http://62.234.18.176:48081' diff --git a/src/api/module/eam/device/index.ts b/src/api/module/eam/device/index.ts index a1729d0..d450d87 100644 --- a/src/api/module/eam/device/index.ts +++ b/src/api/module/eam/device/index.ts @@ -93,6 +93,13 @@ export const getSimpleDeviceList = (params: { categoryId: string }) => params, }) +export const getDeviceLabelBase64 = (id: number) => + eamServer({ + url: `/device/generate-label`, + method: 'get', + params: { id }, + }) + // ============== 测试工单相关 ============== export const operantDeviceTestSheet = (type: OperantAction, params: any) => { diff --git a/src/pages/deviceInfo/index.vue b/src/pages/deviceInfo/index.vue index e36a788..e6e4e19 100644 --- a/src/pages/deviceInfo/index.vue +++ b/src/pages/deviceInfo/index.vue @@ -10,11 +10,7 @@ - +