|
@@ -1,34 +1,33 @@
|
|
-
|
|
|
|
export default {
|
|
export default {
|
|
/*
|
|
/*
|
|
** Nuxt rendering mode
|
|
** Nuxt rendering mode
|
|
** See https://nuxtjs.org/api/configuration-mode
|
|
** See https://nuxtjs.org/api/configuration-mode
|
|
*/
|
|
*/
|
|
- mode: 'universal',
|
|
|
|
|
|
+ mode: 'universal',
|
|
/*
|
|
/*
|
|
** Nuxt target
|
|
** Nuxt target
|
|
** See https://nuxtjs.org/api/configuration-target
|
|
** See https://nuxtjs.org/api/configuration-target
|
|
*/
|
|
*/
|
|
- target: 'server',
|
|
|
|
|
|
+ target: 'server',
|
|
/*
|
|
/*
|
|
** Headers of the page
|
|
** Headers of the page
|
|
** See https://nuxtjs.org/api/configuration-head
|
|
** See https://nuxtjs.org/api/configuration-head
|
|
*/
|
|
*/
|
|
- head: {
|
|
|
|
|
|
+ head: {
|
|
title: process.env.npm_package_name || '',
|
|
title: process.env.npm_package_name || '',
|
|
- meta: [
|
|
|
|
|
|
+ meta: [
|
|
{ charset: 'utf-8' },
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
- { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
|
|
|
|
|
|
+ { hid: 'description', name: 'description', content: process.env.npm_package_description || '' },
|
|
|
|
+ ],
|
|
|
|
+ link: [
|
|
|
|
+ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
|
|
],
|
|
],
|
|
- link: [
|
|
|
|
- { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
|
|
|
- ]
|
|
|
|
},
|
|
},
|
|
/*
|
|
/*
|
|
** Global CSS
|
|
** Global CSS
|
|
*/
|
|
*/
|
|
- css: [
|
|
|
|
|
|
+ css: [
|
|
'element-ui/lib/theme-chalk/index.css',
|
|
'element-ui/lib/theme-chalk/index.css',
|
|
{ src: '~assets/scss/main.scss', lang: 'scss' },
|
|
{ src: '~assets/scss/main.scss', lang: 'scss' },
|
|
],
|
|
],
|
|
@@ -36,31 +35,30 @@ export default {
|
|
** Plugins to load before mounting the App
|
|
** Plugins to load before mounting the App
|
|
** https://nuxtjs.org/guide/plugins
|
|
** https://nuxtjs.org/guide/plugins
|
|
*/
|
|
*/
|
|
- plugins: [
|
|
|
|
- '@/plugins/element-ui','~/plugins/axios.http'
|
|
|
|
|
|
+ plugins: [
|
|
|
|
+ '@/plugins/element-ui', '~/plugins/axios.http', {src:'~plugins/loadsh.js',ssr: false},
|
|
],
|
|
],
|
|
/*
|
|
/*
|
|
** Auto import components
|
|
** Auto import components
|
|
** See https://nuxtjs.org/api/configuration-components
|
|
** See https://nuxtjs.org/api/configuration-components
|
|
*/
|
|
*/
|
|
- components: true,
|
|
|
|
|
|
+ components: true,
|
|
/*
|
|
/*
|
|
** Nuxt.js dev-modules
|
|
** Nuxt.js dev-modules
|
|
*/
|
|
*/
|
|
- buildModules: [
|
|
|
|
- ],
|
|
|
|
|
|
+ buildModules: [],
|
|
/*
|
|
/*
|
|
** Nuxt.js modules
|
|
** Nuxt.js modules
|
|
*/
|
|
*/
|
|
- modules: ['@nuxtjs/axios'],
|
|
|
|
|
|
+ modules: ['@nuxtjs/axios'],
|
|
/*
|
|
/*
|
|
** Build configuration
|
|
** Build configuration
|
|
** See https://nuxtjs.org/api/configuration-build/
|
|
** See https://nuxtjs.org/api/configuration-build/
|
|
*/
|
|
*/
|
|
- build: {
|
|
|
|
|
|
+ build: {
|
|
transpile: [/^element-ui/],
|
|
transpile: [/^element-ui/],
|
|
},
|
|
},
|
|
- axios: {
|
|
|
|
|
|
+ axios: {
|
|
baseURL: 'http://192.168.0.179:8100', // Used as fallback if no runtime config is provided
|
|
baseURL: 'http://192.168.0.179:8100', // Used as fallback if no runtime config is provided
|
|
},
|
|
},
|
|
-}
|
|
|
|
|
|
+};
|