231250141 8 months ago
parent
commit
2847e9498d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Dockerfile
  2. 1 1
      src/pages/LoginPage.vue

+ 1 - 1
Dockerfile

@@ -9,7 +9,7 @@ RUN npm install
 
 # 复制源码并构建
 COPY . .
-RUN npm run build-only
+RUN npm run build-only -- --mode production
 
 # ===== 运行阶段 =====
 FROM nginx:stable-alpine

+ 1 - 1
src/pages/LoginPage.vue

@@ -2,7 +2,7 @@
 import { ref } from 'vue'
 import { useRouter } from 'vue-router'
 
-const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || 'http://112.124.35.205:8080'
+const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || ''
 
 const router = useRouter()
 const isLogin = ref(true) // true: 登录, false: 注册