diff --git a/src/main.js b/src/main.js index 964152c..8e07b0e 100644 --- a/src/main.js +++ b/src/main.js @@ -20,19 +20,10 @@ // const { mockXHR } = require('../mock') // mockXHR() -// 引入动画 -import animated from 'animate.css' -Vue.use(animated) +// // 引入动画 +// import animated from 'animate.css' +// Vue.use(animated) -// 引入高德地图 -// import VueAMap from 'vue-amap' -// Vue.use(VueAMap) -// VueAMap.initAMapApiLoader({ -// key: 'b6c27a2051691fcb386543c800356e05', // key -// plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor', 'MarkerClusterer'], // 插件 -// // uiVersion: '1.1', // ui组件库版本号 -// v: '1.4.4' // sdk版本 -// }) Vue.config.productionTip = false // 引入v-charts diff --git a/src/main.js b/src/main.js index 964152c..8e07b0e 100644 --- a/src/main.js +++ b/src/main.js @@ -20,19 +20,10 @@ // const { mockXHR } = require('../mock') // mockXHR() -// 引入动画 -import animated from 'animate.css' -Vue.use(animated) +// // 引入动画 +// import animated from 'animate.css' +// Vue.use(animated) -// 引入高德地图 -// import VueAMap from 'vue-amap' -// Vue.use(VueAMap) -// VueAMap.initAMapApiLoader({ -// key: 'b6c27a2051691fcb386543c800356e05', // key -// plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor', 'MarkerClusterer'], // 插件 -// // uiVersion: '1.1', // ui组件库版本号 -// v: '1.4.4' // sdk版本 -// }) Vue.config.productionTip = false // 引入v-charts diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js index ffafa14..f763d3e 100644 --- a/src/store/modules/settings.js +++ b/src/store/modules/settings.js @@ -4,8 +4,9 @@ // const { showSettings, tagsView, breadcrumb, fixedHeader, sidebarLogo } = defaultSettings const { showSettings, tagsView, fixedHeader, sidebarLogo } = defaultSettings +// theme: variables.theme, // 主题 const state = { - theme: variables.theme, // 主题 + theme: '', // 主题 showSettings: showSettings, // 是否显示设置按钮 breadcrumb: true, // 是否显示面包屑 tagsView: tagsView, // 是否显示tagsView diff --git a/src/main.js b/src/main.js index 964152c..8e07b0e 100644 --- a/src/main.js +++ b/src/main.js @@ -20,19 +20,10 @@ // const { mockXHR } = require('../mock') // mockXHR() -// 引入动画 -import animated from 'animate.css' -Vue.use(animated) +// // 引入动画 +// import animated from 'animate.css' +// Vue.use(animated) -// 引入高德地图 -// import VueAMap from 'vue-amap' -// Vue.use(VueAMap) -// VueAMap.initAMapApiLoader({ -// key: 'b6c27a2051691fcb386543c800356e05', // key -// plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor', 'MarkerClusterer'], // 插件 -// // uiVersion: '1.1', // ui组件库版本号 -// v: '1.4.4' // sdk版本 -// }) Vue.config.productionTip = false // 引入v-charts diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js index ffafa14..f763d3e 100644 --- a/src/store/modules/settings.js +++ b/src/store/modules/settings.js @@ -4,8 +4,9 @@ // const { showSettings, tagsView, breadcrumb, fixedHeader, sidebarLogo } = defaultSettings const { showSettings, tagsView, fixedHeader, sidebarLogo } = defaultSettings +// theme: variables.theme, // 主题 const state = { - theme: variables.theme, // 主题 + theme: '', // 主题 showSettings: showSettings, // 是否显示设置按钮 breadcrumb: true, // 是否显示面包屑 tagsView: tagsView, // 是否显示tagsView diff --git a/vue.config.js b/vue.config.js index e16384c..4a967eb 100644 --- a/vue.config.js +++ b/vue.config.js @@ -12,7 +12,10 @@ const port = process.env.port || process.env.npm_config_port || 9527 // dev port module.exports = { - publicPath: '/', + // publicPath: '/', + publicPath: process.env.NODE_ENV === 'production' + ? '/smartwell/' + : '/', assetsDir: 'static', outputDir: 'dist', lintOnSave: process.env.NODE_ENV === 'development', // 是否开启eslint