Bläddra i källkod

久创打包配置

tanxue 3 år sedan
förälder
incheckning
52a480304a
1 ändrade filer med 6 tillägg och 6 borttagningar
  1. 6 6
      nuxt.config.js

+ 6 - 6
nuxt.config.js

@@ -1,13 +1,13 @@
 /********** 本地环境 start **********/
 const pro = {
-  baseURL: 'https://www.mtavip.com/api',
-  host: '192.168.0.74',
+  baseURL: 'http://www.28eu.cn/api',
+  host: '192.168.0.28',
   //环境变量设置 新闻 拼路径时的根级别路径 多用于a标签 href属性
-  url:'https://www.mtavip.com'
+  url:'http://www.28eu.cn'
 
 }
 // build 改为true
-const isPro = false;
+const isPro = true;
 
 export default {
   /*
@@ -17,7 +17,7 @@ export default {
   mode:         'universal',
   server: {
     // port 端口,默认3000,nuxt默认
-    port: 3000, // default: 3000
+    port: 3001, // default: 3000
     // host:连接服务器主机名  分享本地地址修改此处,例:192.168.0.32
     host: isPro?pro.host:'localhost' // default: localhost,
   },
@@ -76,7 +76,7 @@ export default {
    * 环境变量设置 新闻 拼路径时的根级别路径 多用于a标签 href属性
    */
   env: {
-    baseUrl: isPro?pro.url:'http://localhost:3000'
+    baseUrl: isPro?pro.url:'http://localhost:3001'
   },
   /**
    * loading 进度条样式