master_basic
parent
62e1bf1a66
commit
b5e0d3082e
@ -1,11 +0,0 @@
|
|||||||
import GlobalConfig from '../src/utils/env/dev';
|
|
||||||
const proxy = {
|
|
||||||
'/api': {
|
|
||||||
target: GlobalConfig['PROXY_SERVER'],
|
|
||||||
changeOrigin: true,
|
|
||||||
withCredentials: true,
|
|
||||||
secure: false,
|
|
||||||
cookieDomainRewrite: 'localhost',
|
|
||||||
}
|
|
||||||
};
|
|
||||||
export default proxy;
|
|
@ -1,15 +1,17 @@
|
|||||||
// --------------------------初装系统---------------------------
|
import { getRequest, postRequest, uploadFile } from '@/utils/request';
|
||||||
// 数据安装
|
|
||||||
export async function deviceInstall_deviceInstall(data: any) {
|
|
||||||
return postRequest(`/deviceInit/deviceInstall.json`, data);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// --------------------------初装系统---------------------------
|
||||||
// 设备初装
|
// 设备初装
|
||||||
export async function deviceInit_init(data: any) {
|
export async function deviceInit_init(data: any) {
|
||||||
return postRequest(`/deviceInit/init.json`, data);
|
return uploadFile(`/xgd/deviceInit/init`, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 数据安装
|
||||||
|
export async function deviceInstall_deviceInstall(data: any) {
|
||||||
|
return postRequest(`/xgd/deviceInit/deviceInstall`, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 开机认证
|
// 开机认证
|
||||||
export async function college_table_query(params: any) {
|
export async function college_table_query(params: any) {
|
||||||
return getRequest(`/deviceInit/powerOnAuth.json`, params);
|
return getRequest(`/xgd/deviceInit/powerOnAuth`, params);
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
export const DEV = {
|
export const DEV = {
|
||||||
PROXY_SERVER: 'http://localhost:8088/xgd',
|
PROXY_SERVER: 'http://localhost:8088',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default DEV;
|
export default DEV;
|
||||||
|
Loading…
Reference in new issue