|
@@ -3,7 +3,7 @@
|
|
|
* @Author: 欧阳承珺
|
|
|
* @LastEditors: 欧阳承珺
|
|
|
* @Date: 2022-10-17 11:06:52
|
|
|
- * @LastEditTime: 2022-11-16 11:28:15
|
|
|
+ * @LastEditTime: 2022-11-16 15:41:46
|
|
|
*/
|
|
|
export default {
|
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
@@ -20,16 +20,15 @@ export default {
|
|
|
],
|
|
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
|
|
},
|
|
|
-
|
|
|
+ env: {
|
|
|
+ BASE_URL: process.env.BASE_URL,
|
|
|
+ NODE_ENV: process.env.NODE_ENV
|
|
|
+ },
|
|
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
|
|
css: [
|
|
|
'@/assets/main.scss',
|
|
|
{src:'element-ui/lib/theme-chalk/index.css'},
|
|
|
],
|
|
|
- server: {
|
|
|
- host: '0.0.0.0',
|
|
|
- port: 8082
|
|
|
- },
|
|
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
|
|
plugins: [
|
|
|
'~/plugins/axios',
|
|
@@ -57,12 +56,13 @@ export default {
|
|
|
],
|
|
|
axios: {
|
|
|
timeout: 3000,
|
|
|
+ baseURL: process.env.BASE_URL,
|
|
|
prefix: '/17pdf-backend-core/',
|
|
|
- proxy: process.env.NODE_ENV !== 'production'
|
|
|
- },
|
|
|
- proxy: {
|
|
|
- '/17pdf-backend-core': { target: 'http://81.68.234.235:8999',}
|
|
|
+ // proxy: process.env.NODE_ENV !== 'production'
|
|
|
},
|
|
|
+ // proxy: {
|
|
|
+ // '/17pdf-backend-core': { target: 'http://81.68.234.235:8999',}
|
|
|
+ // },
|
|
|
|
|
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
|
|
build: {
|