Parcourir la source

环境变量修改

yangbifan il y a 2 ans
Parent
commit
5c95c498d8
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 2 2
      config/dev.env.js
  2. 1 1
      public/index.html

+ 2 - 2
config/dev.env.js

@@ -4,7 +4,7 @@ const prodEnv = require('./prod.env')
 import getConfig from '/src/config/dev.js'
 let BASE_API = getConfig().BASE_API
 let BASE_URL = getConfig().BASE_URL
-module.exports = merge(prodEnv, {
+export default  {
   NODE_ENV: '"development"',
   ENV_CONFIG: '"dev"',
   ctx:"'"+ BASE_URL + "'",
@@ -16,5 +16,5 @@ module.exports = merge(prodEnv, {
   excludeMeWhenSelectNextHandler:false,
   excludeFormerHanlder:false,
   envTitle:'"本地开发环境"'
-})
+}
   

+ 1 - 1
public/index.html

@@ -34,7 +34,7 @@
     // window.staticHost = 'http://10.230.26.15:8000/mkt'; // 正式
     // window.staticHost = 'http://10.149.85.91:8000/spfm'; // 测试
     // window.staticHost = 'http://192.168.0.103:9600/';
-    // window.staticHost = 'http://43.138.50.94:9600/';
+    window.staticHost = 'http://43.138.50.94:9600/';
 
     // document.title = "hello";
   </script>