mirror of
https://gitee.com/HuLaSpark/HuLa.git
synced 2024-11-29 18:28:30 +08:00
fix(service): 🐛 修复打包后访问不了正式服务器的bug
This commit is contained in:
parent
d97d24f1c1
commit
c8d42ab31e
20
CHANGELOG.md
20
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)
|
## [2.5.0](https://github.com/HuLaSpark/HuLa/compare/v2.4.5...v2.5.0) (2024-10-27)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"productName": "HuLa",
|
"productName": "HuLa",
|
||||||
"version": "2.4.0",
|
"version": "2.5.0",
|
||||||
"identifier": "com.tauri.build",
|
"identifier": "com.tauri.build",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "pnpm dev",
|
"beforeDevCommand": "pnpm dev",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"productName": "HuLa",
|
"productName": "HuLa",
|
||||||
"version": "2.4.0",
|
"version": "2.5.0",
|
||||||
"identifier": "com.tauri.build",
|
"identifier": "com.tauri.build",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "pnpm dev",
|
"beforeDevCommand": "pnpm dev",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"productName": "HuLa",
|
"productName": "HuLa",
|
||||||
"version": "2.4.0",
|
"version": "2.5.0",
|
||||||
"identifier": "com.tauri.build",
|
"identifier": "com.tauri.build",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "pnpm dev",
|
"beforeDevCommand": "pnpm dev",
|
||||||
|
@ -142,7 +142,7 @@ export const leftHook = () => {
|
|||||||
window.$message.success('佩戴成功')
|
window.$message.success('佩戴成功')
|
||||||
/** 获取用户信息 */
|
/** 获取用户信息 */
|
||||||
apis.getUserInfo().then((res) => {
|
apis.getUserInfo().then((res) => {
|
||||||
editInfo.value.content = res.data
|
editInfo.value.content = res
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ const DELETE = <T>(url: string, params?: any) => request.delete<T>(url, params)
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
/** 获取用户信息 */
|
/** 获取用户信息 */
|
||||||
getUserInfo: (): Promise<Response> => GET(urls.getUserInfo),
|
getUserInfo: (): Promise<UserItem> => GET(urls.getUserInfo),
|
||||||
/** 获取群成员列表 */
|
/** 获取群成员列表 */
|
||||||
getGroupList: (params?: any) => GET<ListResponse<UserItem>>(urls.getGroupUserList, params),
|
getGroupList: (params?: any) => GET<ListResponse<UserItem>>(urls.getGroupUserList, params),
|
||||||
/** 获取群成员统计 */
|
/** 获取群成员统计 */
|
||||||
|
@ -57,7 +57,7 @@ async function Http<T>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 拼接 API 基础路径
|
// 拼接 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 url: ', url)
|
||||||
// console.log('fetch options: ', fetchOptions)
|
// console.log('fetch options: ', fetchOptions)
|
||||||
|
@ -102,7 +102,7 @@ export default defineConfig(({ mode }: ConfigEnv) => {
|
|||||||
// “/api” 以及前置字符串会被替换为真正域名
|
// “/api” 以及前置字符串会被替换为真正域名
|
||||||
target: config.VITE_SERVICE_URL, // 请求域名
|
target: config.VITE_SERVICE_URL, // 请求域名
|
||||||
changeOrigin: true, // 是否跨域
|
changeOrigin: true, // 是否跨域
|
||||||
rewrite: (path) => path.replace(/^\/api/, '')
|
rewrite: (path) => path.replace(/^\/api/, '/api')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hmr: true, // 热更新
|
hmr: true, // 热更新
|
||||||
|
Loading…
Reference in New Issue
Block a user