From d7606a9a3c81114f5d255c72d0eeb55e87d8aabb Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 02 四月 2026 16:35:07 +0800
Subject: [PATCH] fix: 打包配置
---
src/settings.js | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/settings.js b/src/settings.js
index b640d05..3def3fe 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -8,13 +8,16 @@
// | Author: CMS Team <admin@CMS.com>
// +----------------------------------------------------------------------
-// 璇锋眰鎺ュ彛鍦板潃 濡傛灉娌℃湁閰嶇疆鑷姩鑾峰彇褰撳墠缃戝潃璺緞
-const VUE_APP_API_URL = process.env.VUE_APP_BASE_API || `${location.origin}/api/`;
+// 璇锋眰鎺ュ彛鍦板潃锛�
+// - 娴忚鍣ㄨ繍琛屾椂鍙娇鐢� location.origin
+// - Node 鏋勫缓/鍔犺浇闃舵锛坴ue-cli-service 鍔犺浇 vue.config.js锛夋病鏈� location锛屽繀椤诲厹搴�
+const VUE_APP_API_URL =
+ process.env.VUE_APP_BASE_API || "http://172.17.0.1:9031/api/";
module.exports = {
// 鎺ュ彛璇锋眰鍦板潃
apiBaseURL: VUE_APP_API_URL,
- title: 'CMS',
+ title: "CMS",
/**
* @type {boolean} true | false
@@ -46,5 +49,5 @@
* The default is only used in the production env
* If you want to also use it in dev, you can pass ['production', 'development']
*/
- errorLog: 'production'
-}
+ errorLog: "production",
+};
--
Gitblit v1.9.3