|
- export default {
- // Global page headers: https://go.nuxtjs.dev/config-head
- head: {
- title: '智莺开放平台',
- htmlAttrs: {
- lang: 'en'
- },
- meta: [
- { charset: 'utf-8' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { hid: 'description', name: 'description', content: '' }
- ],
- link: [
- { rel: 'icon', type: 'image/x-icon', href: '/img/favicon.ico' }
- ]
- },
-
- // Global CSS: https://go.nuxtjs.dev/config-css
- css: [
- 'element-ui/lib/theme-chalk/index.css',
- "swiper/swiper-bundle.min.css",
- './static/css/app.scss',
- './static/css/common.scss',
- "vue-json-viewer/style.css"
- ],
-
- // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
- plugins: [
- '@/plugins/element-ui',
- "@/plugins/vue-swiper.js",
- '@/plugins/route.js',
- '@/plugins/viewer.js'
- ],
-
-
-
- // Auto import components: https://go.nuxtjs.dev/config-components
- components: true,
-
- // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
- buildModules: [
- ],
-
- // Modules: https://go.nuxtjs.dev/config-modules
- modules: ["@nuxtjs/axios"],
-
- axios: {
- proxy: true
- },
- proxy: {
- "/ws": "https://apis.map.qq.com"
- },
-
- router: {
- middleware: ['metaTitle']
- },
-
- // Build Configuration: https://go.nuxtjs.dev/config-build
- build: {
- transpile: [/^element-ui/],
- vendor: ["axios"]
- }
- }
|