|
@@ -3,7 +3,7 @@
|
|
* @Author: 欧阳承珺
|
|
* @Author: 欧阳承珺
|
|
* @LastEditors: 欧阳承珺
|
|
* @LastEditors: 欧阳承珺
|
|
* @Date: 2022-10-17 11:06:52
|
|
* @Date: 2022-10-17 11:06:52
|
|
- * @LastEditTime: 2022-11-16 11:28:15
|
|
|
|
|
|
+ * @LastEditTime: 2022-11-16 15:41:46
|
|
*/
|
|
*/
|
|
export default {
|
|
export default {
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
// 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' }],
|
|
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
|
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
|
css: [
|
|
css: [
|
|
'@/assets/main.scss',
|
|
'@/assets/main.scss',
|
|
{src:'element-ui/lib/theme-chalk/index.css'},
|
|
{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 to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
|
plugins: [
|
|
plugins: [
|
|
'~/plugins/axios',
|
|
'~/plugins/axios',
|
|
@@ -57,12 +56,13 @@ export default {
|
|
],
|
|
],
|
|
axios: {
|
|
axios: {
|
|
timeout: 3000,
|
|
timeout: 3000,
|
|
|
|
+ baseURL: process.env.BASE_URL,
|
|
prefix: '/17pdf-backend-core/',
|
|
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 Configuration: https://go.nuxtjs.dev/config-build
|
|
build: {
|
|
build: {
|