Skip to content

Commit b6ff302

Browse files
committed
修复App.vue语法错误并添加环境变量配置
1 parent ead7cfc commit b6ff302

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

web/.env.development

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 本地开发环境配置
2+
VITE_SHORT_BASE=http://localhost:8080
3+
VITE_API_BASE=http://localhost:8080

web/.env.production

92 Bytes
Binary file not shown.

web/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ import { SHORT_BASE } from '/src/composables/shortBase'
226226
227227
const API_BASE = (typeof window !== 'undefined' && window.location && window.location.origin)
228228
? window.location.origin
229-
SHORT_BASE // 用于顶部"历史记录"跳转链接
229+
: SHORT_BASE // 用于顶部"历史记录"跳转链接
230230
// 使用全局 axios 实例(已在 useAuth 中配置拦截器)
231231
const api = axios
232232

0 commit comments

Comments
 (0)