|
@@ -3,7 +3,7 @@
|
|
|
* @Author: 欧阳承珺
|
|
|
* @LastEditors: 欧阳承珺
|
|
|
* @Date: 2022-10-17 11:06:52
|
|
|
- * @LastEditTime: 2022-10-19 17:14:06
|
|
|
+ * @LastEditTime: 2022-10-26 16:52:30
|
|
|
*/
|
|
|
export default {
|
|
|
// Global page headers: https://go.nuxtjs.dev/config-head
|
|
@@ -23,12 +23,16 @@ export default {
|
|
|
|
|
|
// Global CSS: https://go.nuxtjs.dev/config-css
|
|
|
css: [
|
|
|
- '@/assets/main.scss'
|
|
|
+ '@/assets/main.scss',
|
|
|
+ {src:'element-ui/lib/theme-chalk/index.css'},
|
|
|
],
|
|
|
|
|
|
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
|
|
plugins: [
|
|
|
- '~/plugins/api'
|
|
|
+ '~/plugins/axios',
|
|
|
+ {src: '~plugins/element-ui', ssr: false},
|
|
|
+ {src: '@/plugins/localStorage', ssr: false},
|
|
|
+
|
|
|
],
|
|
|
|
|
|
// Auto import components: https://go.nuxtjs.dev/config-components
|
|
@@ -46,18 +50,19 @@ export default {
|
|
|
// Modules: https://go.nuxtjs.dev/config-modules
|
|
|
modules: [
|
|
|
'@nuxtjs/axios',
|
|
|
- '@nuxtjs/proxy'
|
|
|
-
|
|
|
+ '@nuxtjs/proxy',
|
|
|
],
|
|
|
axios: {
|
|
|
timeout: 3000,
|
|
|
- prefix: '/api/',
|
|
|
+ prefix: '/17pdf-backend-core/',
|
|
|
proxy: true
|
|
|
},
|
|
|
proxy: {
|
|
|
- '/api': { target: 'https://17pdf.com'}
|
|
|
+ '/17pdf-backend-core': { target: 'http://81.68.234.235:8999',}
|
|
|
},
|
|
|
|
|
|
// Build Configuration: https://go.nuxtjs.dev/config-build
|
|
|
- build: {},
|
|
|
+ build: {
|
|
|
+ vendor: ['element-ui']
|
|
|
+ },
|
|
|
}
|