zhangsijie 2 年 前
コミット
ae8ce2f4ff
2 ファイル変更17 行追加3 行削除
  1. 6 0
      package-lock.json
  2. 11 3
      pingpu_vue/config/index.js

+ 6 - 0
package-lock.json

@@ -0,0 +1,6 @@
+{
+  "name": "pingpu_vue",
+  "lockfileVersion": 3,
+  "requires": true,
+  "packages": {}
+}

+ 11 - 3
pingpu_vue/config/index.js

@@ -1,3 +1,11 @@
+/*
+ * @Author: zhangsijie 1935241421@qq.com
+ * @Date: 2023-06-07 15:23:26
+ * @LastEditors: lin
+ * @LastEditTime: 2023-08-28 10:03:07
+ * @FilePath: \project\pingpu_vue\pingpu_vue\config\index.js
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
 "use strict";
 // Template version: 1.3.1
 // see http://vuejs-templates.github.io/webpack for documentation.
@@ -11,8 +19,8 @@ module.exports = {
     assetsPublicPath: "/",
     proxyTable: {
       "/api": {
-        target: " http://106.119.196.18:10004", // 线上
-        // target: 'http://192.168.1.52:10004',
+        // target: " http://106.119.196.18:10004", // 线上
+        target: 'http://192.168.1.52:10004',
         changeOrigin: true,
         pathRewrite: {
           "^/api": "/api" // 重写接口
@@ -31,7 +39,7 @@ module.exports = {
     },
 
     // Various Dev Server settings
-    host: "192.168.1.106", // can be overwritten by process.env.HOST
+    host: "192.168.1.20", // can be overwritten by process.env.HOST
     port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
     autoOpenBrowser: false,
     errorOverlay: true,