|
@@ -1,3 +1,14 @@
|
|
|
+const dev = {
|
|
|
+ baseURL: 'http://192.168.0.179:82/api',
|
|
|
+ host: 'localhost',
|
|
|
+}
|
|
|
+const pro = {
|
|
|
+ baseURL: 'http://182.92.186.22:83/api',
|
|
|
+ host: 'http://182.92.186.22:83/api',
|
|
|
+}
|
|
|
+
|
|
|
+const isDev = true;
|
|
|
+
|
|
|
export default {
|
|
|
/*
|
|
|
** Nuxt rendering mode
|
|
@@ -60,8 +71,17 @@ export default {
|
|
|
// 异步加载样式 默认false
|
|
|
extractCSS: true
|
|
|
},
|
|
|
+ // server: {
|
|
|
+ // port: 3000, // default: 3000
|
|
|
+ // host: '192.168.0.179' // default: localhost,
|
|
|
+ // },
|
|
|
+ // server: {
|
|
|
+ // port: 3000, // default: 3000
|
|
|
+ // host: isDev ? dev.host : pro.host // default: localhost,
|
|
|
+ // },
|
|
|
axios: {
|
|
|
- // baseURL: 'http://192.168.0.179:8100',
|
|
|
- baseURL: 'http://182.92.186.22:83/api', // Used as fallback if no runtime config is provided
|
|
|
+ // baseURL: isDev ? dev.baseURL : pro.baseURL
|
|
|
+ baseURL: 'http://192.168.0.179:82/api',
|
|
|
+ // baseURL: 'http://182.92.186.22:83/api', // Used as fallback if no runtime config is provided
|
|
|
},
|
|
|
};
|