diff --git a/CHANGELOG.md b/CHANGELOG.md index c522301..77e4171 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ +## [2.5.0](https://github.com/HuLaSpark/HuLa/compare/v2.4.0...v2.5.0) (2024-10-27) + + +### ⚠ BREAKING CHANGES + +* **util:** http请求异常bug + +### ✨ Features | 新功能 + +* **layout:** :sparkles: 自动更新增加进度条 ([4ee3e2b](https://github.com/HuLaSpark/HuLa/commit/4ee3e2b8a36b34cdc996a8b538bddea61bbf1af2)) + + +### 🐛 Bug Fixes | Bug 修复 + +* **api:** 修改websocket请求地址, 修改请求方式采用fetch处理 ([e55f863](https://github.com/HuLaSpark/HuLa/commit/e55f86385fb8e25e826ae57341e0d818f5fe34b2)) +* **layout:** :bug: 修复更新进度条显示异常bug ([45e2bfc](https://github.com/HuLaSpark/HuLa/commit/45e2bfce669c76cbb72be641febf59509b3e6204)) +* **service:** :bug: 修复请求体包裹多层data的问题 ([d97d24f](https://github.com/HuLaSpark/HuLa/commit/d97d24f1c1d554e5477b221c725e45100655c0e0)) +* **util:** :bug: http请求异常bug ([6e82a09](https://github.com/HuLaSpark/HuLa/commit/6e82a099a2a51ea08548c4d5da496393a94b7b05)) +* **view:** :bug: 修复点击右侧布局页面时候不跳转回消息页 ([be0edf9](https://github.com/HuLaSpark/HuLa/commit/be0edf974778b58fe5af9ec030d9927999a6d7bb)) + ## [2.5.0](https://github.com/HuLaSpark/HuLa/compare/v2.4.5...v2.5.0) (2024-10-27) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 4a97824..5b8efe2 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "productName": "HuLa", - "version": "2.4.0", + "version": "2.5.0", "identifier": "com.tauri.build", "build": { "beforeDevCommand": "pnpm dev", diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json index 799049c..dc69203 100644 --- a/src-tauri/tauri.macos.conf.json +++ b/src-tauri/tauri.macos.conf.json @@ -1,6 +1,6 @@ { "productName": "HuLa", - "version": "2.4.0", + "version": "2.5.0", "identifier": "com.tauri.build", "build": { "beforeDevCommand": "pnpm dev", diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 4e3a243..b583a38 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -1,6 +1,6 @@ { "productName": "HuLa", - "version": "2.4.0", + "version": "2.5.0", "identifier": "com.tauri.build", "build": { "beforeDevCommand": "pnpm dev", diff --git a/src/layout/left/hook.ts b/src/layout/left/hook.ts index fbfa47a..1c4fbf2 100644 --- a/src/layout/left/hook.ts +++ b/src/layout/left/hook.ts @@ -142,7 +142,7 @@ export const leftHook = () => { window.$message.success('佩戴成功') /** 获取用户信息 */ apis.getUserInfo().then((res) => { - editInfo.value.content = res.data + editInfo.value.content = res }) } } diff --git a/src/services/apis.ts b/src/services/apis.ts index 16d0846..5e3914e 100644 --- a/src/services/apis.ts +++ b/src/services/apis.ts @@ -37,7 +37,7 @@ const DELETE = (url: string, params?: any) => request.delete(url, params) export default { /** 获取用户信息 */ - getUserInfo: (): Promise => GET(urls.getUserInfo), + getUserInfo: (): Promise => GET(urls.getUserInfo), /** 获取群成员列表 */ getGroupList: (params?: any) => GET>(urls.getGroupUserList, params), /** 获取群成员统计 */ diff --git a/src/services/http.ts b/src/services/http.ts index 7bb5ef9..fce9223 100644 --- a/src/services/http.ts +++ b/src/services/http.ts @@ -57,7 +57,7 @@ async function Http( } // 拼接 API 基础路径 - url = `${import.meta.env.VITE_SERVICE_URL}${url}` + //url = `${import.meta.env.VITE_SERVICE_URL}${url}` // console.log('fetch url: ', url) // console.log('fetch options: ', fetchOptions) diff --git a/vite.config.ts b/vite.config.ts index 09cfa39..012e701 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -102,7 +102,7 @@ export default defineConfig(({ mode }: ConfigEnv) => { // “/api” 以及前置字符串会被替换为真正域名 target: config.VITE_SERVICE_URL, // 请求域名 changeOrigin: true, // 是否跨域 - rewrite: (path) => path.replace(/^\/api/, '') + rewrite: (path) => path.replace(/^\/api/, '/api') } }, hmr: true, // 热更新