From 39bc27f078c2d95171f3fccea3487d4c360507cd Mon Sep 17 00:00:00 2001 From: cysamurai Date: Fri, 8 Aug 2025 18:04:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A49?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tax-asst-client/src/main/index.ts | 4 ++-- tax-asst-client/src/renderer/src/utils/request.ts | 13 ------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/tax-asst-client/src/main/index.ts b/tax-asst-client/src/main/index.ts index 4de8f91..bbf602f 100644 --- a/tax-asst-client/src/main/index.ts +++ b/tax-asst-client/src/main/index.ts @@ -19,9 +19,9 @@ function createWindow(): void { } }) - if (is.dev) { + // if (is.dev) { mainWindow.webContents.openDevTools() //打开调试工具 - } + // } mainWindow.on('ready-to-show', () => { mainWindow.show() diff --git a/tax-asst-client/src/renderer/src/utils/request.ts b/tax-asst-client/src/renderer/src/utils/request.ts index f650135..1fe4a9f 100644 --- a/tax-asst-client/src/renderer/src/utils/request.ts +++ b/tax-asst-client/src/renderer/src/utils/request.ts @@ -1,18 +1,5 @@ import axios from 'axios' -// import { readFileSync } from 'fs' -// import { join } from 'path' -// let API_BASE_URL = import.meta.env.VITE_API_BASE_URL - -// try { -// const configPath = join(__dirname, 'config.json') -// const config = JSON.parse(readFileSync(configPath, 'utf-8')) -// if (config.apiBaseUrl) { -// API_BASE_URL = config.apiBaseUrl -// } -// } catch (error) { -// console.warn('Failed to read config file, using environment variable:', error) -// } let API_BASE_URL = import.meta.env.VITE_API_BASE_URL const instance = axios.create({