diff --git a/tax-asst-client/.env.development b/tax-asst-client/.env.development
new file mode 100644
index 0000000..3155597
--- /dev/null
+++ b/tax-asst-client/.env.development
@@ -0,0 +1,2 @@
+# 开发环境 API 地址(Vite 会通过 proxy 代理)
+VITE_API_BASE_URL=/tax
\ No newline at end of file
diff --git a/tax-asst-client/.env.production b/tax-asst-client/.env.production
new file mode 100644
index 0000000..590ac73
--- /dev/null
+++ b/tax-asst-client/.env.production
@@ -0,0 +1,2 @@
+# 生产环境 API 地址(打包后使用)
+VITE_API_BASE_URL=http://192.168.0.117:8092/tax
\ No newline at end of file
diff --git a/tax-asst-client/electron.vite.config.ts b/tax-asst-client/electron.vite.config.ts
index 0d55755..1b29744 100644
--- a/tax-asst-client/electron.vite.config.ts
+++ b/tax-asst-client/electron.vite.config.ts
@@ -21,7 +21,7 @@ export default defineConfig({
server: {
proxy: {
'/tax': {
- target: 'http://192.168.0.117:8092/',
+ target: 'http://192.168.0.117:8092',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/tax/, '/tax')
}
diff --git a/tax-asst-client/package.json b/tax-asst-client/package.json
index 61a9ce1..a5f5f2a 100644
--- a/tax-asst-client/package.json
+++ b/tax-asst-client/package.json
@@ -24,6 +24,7 @@
"dependencies": {
"@electron-toolkit/preload": "^3.0.0",
"@electron-toolkit/utils": "^3.0.0",
+ "@vicons/ionicons5": "^0.13.0",
"axios": "^1.11.0",
"naive-ui": "^2.42.0",
"pinia": "^3.0.3",
diff --git a/tax-asst-client/src/main/index.ts b/tax-asst-client/src/main/index.ts
index b363ebd..83e562c 100644
--- a/tax-asst-client/src/main/index.ts
+++ b/tax-asst-client/src/main/index.ts
@@ -6,8 +6,8 @@ import icon from '../../resources/icon.png?asset'
function createWindow(): void {
// Create the browser window.
const mainWindow = new BrowserWindow({
- width: 1920,
- height: 1080,
+ width: 800,
+ height: 600,
show: false,
// frame: false,
resizable: false,
diff --git a/tax-asst-client/src/renderer/src/api/api.ts b/tax-asst-client/src/renderer/src/api/api.ts
index 39d772a..db30f50 100644
--- a/tax-asst-client/src/renderer/src/api/api.ts
+++ b/tax-asst-client/src/renderer/src/api/api.ts
@@ -1,4 +1,4 @@
-import request from '@utils/request'
+import request from '@renderer/utils/request'
export function loginByJson(data) {
return request({
diff --git a/tax-asst-client/src/renderer/src/components/HomeHeader.vue b/tax-asst-client/src/renderer/src/components/HomeHeader.vue
new file mode 100644
index 0000000..a8f5533
--- /dev/null
+++ b/tax-asst-client/src/renderer/src/components/HomeHeader.vue
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tax-asst-client/src/renderer/src/router/index.ts b/tax-asst-client/src/renderer/src/router/index.ts
index 48bcad5..91fa4fc 100644
--- a/tax-asst-client/src/renderer/src/router/index.ts
+++ b/tax-asst-client/src/renderer/src/router/index.ts
@@ -1,6 +1,11 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '@renderer/views/Login.vue'
+import Home from '@renderer/views/Home..vue'
+
export default createRouter({
history: createWebHashHistory(), // hash模式
- routes: [{ path: '/', component: Login }]
+ routes: [
+ { path: '/', component: Login },
+ { path:'/home', component: Home}
+ ]
})
diff --git a/tax-asst-client/src/renderer/src/utils/request.ts b/tax-asst-client/src/renderer/src/utils/request.ts
index c600c0c..f196eae 100644
--- a/tax-asst-client/src/renderer/src/utils/request.ts
+++ b/tax-asst-client/src/renderer/src/utils/request.ts
@@ -1,7 +1,9 @@
import axios from 'axios'
+const API_BASE_URL = import.meta.env.VITE_API_BASE_URL
+
const instance = axios.create({
- baseURL: 'tax/',
+ baseURL: API_BASE_URL,
timeout: 1000
})
diff --git a/tax-asst-client/src/renderer/src/views/Home..vue b/tax-asst-client/src/renderer/src/views/Home..vue
new file mode 100644
index 0000000..f0d2f60
--- /dev/null
+++ b/tax-asst-client/src/renderer/src/views/Home..vue
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tax-asst-client/src/renderer/src/views/Login.vue b/tax-asst-client/src/renderer/src/views/Login.vue
index 40191dd..299ff3e 100644
--- a/tax-asst-client/src/renderer/src/views/Login.vue
+++ b/tax-asst-client/src/renderer/src/views/Login.vue
@@ -1,35 +1,41 @@
-
-
-
+
辅助报税系统
叫号码
手机号码
- 登录
+ 登录
-