From 3ded4b5b9369d59a1f2784affbf873207d48ae60 Mon Sep 17 00:00:00 2001 From: zz <2510566342@qq.com> Date: Fri, 18 Oct 2024 11:10:52 +0800 Subject: [PATCH] =?UTF-8?q?10.18=20=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 5 +++-- .env.production | 2 +- api_build/build.bat | 2 +- .../apis/sys-emeter-real-energy-value-api.ts | 2 +- .../apis/sys-emeter-total-energy-value-api.ts | 2 +- src/api-services/apis/sys-homepage-api.ts | 18 +++++++++--------- src/api-services/apis/sys-repairedInfo-api.ts | 8 ++++---- src/api-services/apis/sys-swapmonitor-api.ts | 18 +++++++++--------- .../apis/sys-un-repair-info-api.ts | 8 ++++---- src/views/home/swapping/index.vue | 2 +- src/views/login/component/account.vue | 2 +- 11 files changed, 35 insertions(+), 34 deletions(-) diff --git a/.env.development b/.env.development index e47d28b..260d756 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,9 @@ ENV = development # 本地环境接口地址 -VITE_API_URL = http://192.168.2.16:5034 +VITE_API_URL = http://192.168.2.14:5034 +# VITE_API_URL = http://192.168.2.16:5034 # VITE_API_URL = http://192.168.2.15:5034 # VITE_API_URL = http://gvc7ew.natappfree.cc # VITE_API_URL = http://192.168.2.17:5034 -# VITE_API_URL = http://192.168.2.33:5034 \ No newline at end of file +# VITE_API_URL = http://192.168.2.143:5034 \ No newline at end of file diff --git a/.env.production b/.env.production index 1da5a78..d1ebf3d 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,4 @@ ENV = production # 线上环境接口地址 -VITE_API_URL = http://localhost:5034 \ No newline at end of file +VITE_API_URL = http://192.168.2.14:5034 \ No newline at end of file diff --git a/api_build/build.bat b/api_build/build.bat index ca72b6d..50a5bff 100644 --- a/api_build/build.bat +++ b/api_build/build.bat @@ -12,7 +12,7 @@ if exist %apiServicesPath% ( echo ================================ 开始生成 api-services ================================ -java -jar %dir%swagger-codegen-cli.jar generate -i http://localhost:5005/swagger/All%%20Groups/swagger.json -l typescript-axios -o %apiServicesPath% +java -jar %dir%swagger-codegen-cli.jar generate -i http://192.168.2.14:5005/swagger/All%%20Groups/swagger.json -l typescript-axios -o %apiServicesPath% @rem 删除不必要的文件和文件夹 rd /s /q %apiServicesPath%.swagger-codegen diff --git a/src/api-services/apis/sys-emeter-real-energy-value-api.ts b/src/api-services/apis/sys-emeter-real-energy-value-api.ts index 663710f..bc8b239 100644 --- a/src/api-services/apis/sys-emeter-real-energy-value-api.ts +++ b/src/api-services/apis/sys-emeter-real-energy-value-api.ts @@ -201,7 +201,7 @@ export const SysEmeterRealEnergyApiFp = function (configuration?: Configuration) */ async apiBatchDeleteTEgEmeterRealEnergyValuePost(body?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysEmeterRealEnergyApiAxiosParamCreator(configuration).apiBatchDeleteTEgEmeterRealEnergyValuePost(body, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; diff --git a/src/api-services/apis/sys-emeter-total-energy-value-api.ts b/src/api-services/apis/sys-emeter-total-energy-value-api.ts index a1028f9..48fa56b 100644 --- a/src/api-services/apis/sys-emeter-total-energy-value-api.ts +++ b/src/api-services/apis/sys-emeter-total-energy-value-api.ts @@ -503,7 +503,7 @@ export const SysEmeterTotalEnergyApiFp = function (configuration?: Configuration */ async apiBatchDeleteTEgEmeterTotalEnergyValuePost(body?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysEmeterTotalEnergyApiAxiosParamCreator(configuration).apiBatchDeleteTEgEmeterTotalEnergyValuePost(body, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; diff --git a/src/api-services/apis/sys-homepage-api.ts b/src/api-services/apis/sys-homepage-api.ts index 2f89736..0bff926 100644 --- a/src/api-services/apis/sys-homepage-api.ts +++ b/src/api-services/apis/sys-homepage-api.ts @@ -1050,7 +1050,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) { */ async apiSendPowerRegulationGet(code: string, power: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSendPowerRegulationGet(code, power, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; @@ -1082,7 +1082,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) { */ async apiGetChargerInfoListGET(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetChargerInfoListGET(options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; @@ -1113,7 +1113,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) { */ async apiSetStartChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSetStartChargeByBinNoGet(binNo, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; @@ -1129,7 +1129,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) { */ async apiSetStopChargeByBinNoGet(binNo: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiSetStopChargeByBinNoGet(binNo, options); - const second_url = 'http://192.168.2.146:5034' + const second_url = 'http://localhost6:5034' return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; @@ -1160,7 +1160,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) { */ async apiDistributeElecPriceForChargeGet(ceid: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiDistributeElecPriceForChargeGet(ceid, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; @@ -1176,7 +1176,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) { */ async apiChargerSendAuthGet(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiChargerSendAuthGet(code, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; @@ -1193,7 +1193,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) { async apiGetBattPerStatusCountGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetBattPerStatusCountGet(options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; @@ -1210,7 +1210,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) { async apiBatteryStatusInfoGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiBatteryStatusInfoGet(options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; @@ -1227,7 +1227,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) { async apiGetChargMonitorChargBinData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetChargMonitorChargBinData(options); - const second_url = 'http://192.168.2.14:5035' + const second_url = 'http://localhost:5035' return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; diff --git a/src/api-services/apis/sys-repairedInfo-api.ts b/src/api-services/apis/sys-repairedInfo-api.ts index 7c8bf47..58f939a 100644 --- a/src/api-services/apis/sys-repairedInfo-api.ts +++ b/src/api-services/apis/sys-repairedInfo-api.ts @@ -231,7 +231,7 @@ export const SysRepairedInfoApiFp = function (configuration?: Configuration) { */ async apiSwapOrderQueryPagePost(body?: PageReplaceLogInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysRepairedInfoApiAxiosParamCreator(configuration).apiSwapOrderQueryPagePost(body, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -248,7 +248,7 @@ export const SysRepairedInfoApiFp = function (configuration?: Configuration) { */ async apiSysReplaceLogUpdatePost(body?: UpdateReplaceLogInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysRepairedInfoApiAxiosParamCreator(configuration).apiSysReplaceLogUpdatePost(body, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -264,7 +264,7 @@ export const SysRepairedInfoApiFp = function (configuration?: Configuration) { */ // async apiSysReplaceLogDeleteByIdsPost(body?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { // const localVarAxiosArgs = await SysRepairedInfoApiAxiosParamCreator(configuration).apiSysReplaceLogDeleteByIdsPost(body, options); - // const second_url = 'http://192.168.2.14:5034' + // const second_url = 'http://localhost:5034' // return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { // const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -280,7 +280,7 @@ export const SysRepairedInfoApiFp = function (configuration?: Configuration) { */ async apiUploadCloudGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysRepairedInfoApiAxiosParamCreator(configuration).apiUploadCloudGet(id, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; diff --git a/src/api-services/apis/sys-swapmonitor-api.ts b/src/api-services/apis/sys-swapmonitor-api.ts index 2377c1b..d379f03 100644 --- a/src/api-services/apis/sys-swapmonitor-api.ts +++ b/src/api-services/apis/sys-swapmonitor-api.ts @@ -1540,7 +1540,7 @@ export const SysSwapMoinitorApiFp = function (configuration?: Configuration) { */ async apiGetSwapAndChargingCountPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysSwapMonitorApiAxiosParamCreator(configuration).apiGetSwapAndChargingCountPost(options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -1555,7 +1555,7 @@ export const SysSwapMoinitorApiFp = function (configuration?: Configuration) { */ async apiLockResetPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysSwapMonitorApiAxiosParamCreator(configuration).apiLockResetPost(options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -1570,7 +1570,7 @@ export const SysSwapMoinitorApiFp = function (configuration?: Configuration) { */ async apiSetSwapModelPost(swapModel: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysSwapMonitorApiAxiosParamCreator(configuration).apiSetSwapModelPost(swapModel, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -1599,7 +1599,7 @@ export const SysSwapMoinitorApiFp = function (configuration?: Configuration) { */ async apiSetSwapWayPost(swapWay: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysSwapMonitorApiAxiosParamCreator(configuration).apiSetSwapWayPost(swapWay, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -1675,7 +1675,7 @@ export const SysSwapMoinitorApiFp = function (configuration?: Configuration) { */ async apiSwapResetPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysSwapMonitorApiAxiosParamCreator(configuration).apiSwapResetPost(options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -1690,7 +1690,7 @@ export const SysSwapMoinitorApiFp = function (configuration?: Configuration) { */ async apiOperateOutstationLampPost(lampCmd: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysSwapMonitorApiAxiosParamCreator(configuration).apiOperateOutstationLampPost(lampCmd, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -1721,7 +1721,7 @@ export const SysSwapMoinitorApiFp = function (configuration?: Configuration) { */ async apiManualSwapStatusPost(swapNo: string, status: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysSwapMonitorApiAxiosParamCreator(configuration).apiManualSwapStatusPost(swapNo, status, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -1737,7 +1737,7 @@ export const SysSwapMoinitorApiFp = function (configuration?: Configuration) { */ async apiManualSwappingPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysSwapMonitorApiAxiosParamCreator(configuration).apiManualSwappingPost(options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -1753,7 +1753,7 @@ export const SysSwapMoinitorApiFp = function (configuration?: Configuration) { */ async apiAutoSwappingPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysSwapMonitorApiAxiosParamCreator(configuration).apiAutoSwappingPost(options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; diff --git a/src/api-services/apis/sys-un-repair-info-api.ts b/src/api-services/apis/sys-un-repair-info-api.ts index 1c45b27..d90d087 100644 --- a/src/api-services/apis/sys-un-repair-info-api.ts +++ b/src/api-services/apis/sys-un-repair-info-api.ts @@ -231,7 +231,7 @@ export const SysUnRepairInfoApiFp = function (configuration?: Configuration) { */ async apiSwapOrderQueryPagePost(body?: PageReplaceLogInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysUnRepairInfoApiAxiosParamCreator(configuration).apiSwapOrderQueryPagePost(body, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -248,7 +248,7 @@ export const SysUnRepairInfoApiFp = function (configuration?: Configuration) { */ async apiSysReplaceLogUpdatePost(body?: UpdateReplaceLogInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysUnRepairInfoApiAxiosParamCreator(configuration).apiSysReplaceLogUpdatePost(body, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -264,7 +264,7 @@ export const SysUnRepairInfoApiFp = function (configuration?: Configuration) { */ // async apiSysReplaceLogDeleteByIdsPost(body?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { // const localVarAxiosArgs = await SysUnRepairInfoApiAxiosParamCreator(configuration).apiSysReplaceLogDeleteByIdsPost(body, options); - // const second_url = 'http://192.168.2.14:5034' + // const second_url = 'http://localhost:5034' // return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { // const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; @@ -280,7 +280,7 @@ export const SysUnRepairInfoApiFp = function (configuration?: Configuration) { */ async apiUploadCloudGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await SysUnRepairInfoApiAxiosParamCreator(configuration).apiUploadCloudGet(id, options); - const second_url = 'http://192.168.2.14:5034' + const second_url = 'http://localhost:5034' return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url }; diff --git a/src/views/home/swapping/index.vue b/src/views/home/swapping/index.vue index b0e5592..727b573 100644 --- a/src/views/home/swapping/index.vue +++ b/src/views/home/swapping/index.vue @@ -477,7 +477,7 @@ onBeforeUnmount(() => { connection.stop(); }); // -const connection = new signalR.HubConnectionBuilder().withUrl('http://192.168.2.14:5034/realtime').configureLogging(signalR.LogLevel.Information).build(); +const connection = new signalR.HubConnectionBuilder().withUrl('http://localhost:5034/realtime').configureLogging(signalR.LogLevel.Information).build(); async function start() { try { diff --git a/src/views/login/component/account.vue b/src/views/login/component/account.vue index cb991b5..0a81912 100644 --- a/src/views/login/component/account.vue +++ b/src/views/login/component/account.vue @@ -256,7 +256,7 @@ const handleSignIn = () => { // // 微信登录 // const weixinSignIn = () => { -// window.open('http://192.168.2.14:5005/api/sysoauth/signin?provider=Gitee&redirectUrl=http://192.168.2.14:8888'); +// window.open('http://localhost:5005/api/sysoauth/signin?provider=Gitee&redirectUrl=http://localhost:8888'); // }; // 导出对象