diff --git a/src/main.js b/src/main.js index 73ba28f6a175f53984f43cd4f52e1ff8e6e42718..58d06830f851cc6fbf328df11ed9abd66f127eb1 100644 --- a/src/main.js +++ b/src/main.js @@ -1,15 +1,15 @@ // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. // vue cdn -import Vue from 'vue' -import axios from 'axios' -import hljs from 'highlight.js' -import * as echarts from 'echarts' -import importElementComponents from './importElement' -import importEchartsComponents from './importEchartsComponents' -// 样式cnd -import 'github-markdown-css/github-markdown.css' -import 'nprogress/nprogress.css' +// import Vue from 'vue' +// import axios from 'axios' +// import hljs from 'highlight.js' +// import * as echarts from 'echarts' +// import importElementComponents from './importElement' +// import importEchartsComponents from './importEchartsComponents' +// // 样式cnd +// import 'github-markdown-css/github-markdown.css' +// import 'nprogress/nprogress.css' // 无需cdn import useRouter from './router' import VueRouter from 'vue-router' @@ -57,11 +57,11 @@ if (env === 'production') { // 路由 const router = useRouter(Vue, VueRouter) - // 按需引入elementui - importElementComponents(Vue) - - // 按需引入echarts - importEchartsComponents(Vue) + // // 按需引入elementui + // importElementComponents(Vue) + // + // // 按需引入echarts + // importEchartsComponents(Vue) Vue.config.productionTip = false Vue.use(cookies) @@ -76,7 +76,7 @@ if (env === 'production') { // cookie Vue.prototype.$cookies = cookies // axios - Vue.use(axios) + // Vue.use(axios) Vue.prototype.$axios = axios window.$axios_w = axios Vue.prototype.$cookies.set('user_session', 'null') diff --git a/src/store/index.js b/src/store/index.js index f71c124891ee2f96561d2818c4a639733b7160cc..3207cd30f38737360a4a40c88045e45fb47acb71 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,5 +1,5 @@ -import Vue from 'vue' -import Vuex from 'vuex' +// import Vue from 'vue' +// import Vuex from 'vuex' // import createLogger from '../../../src/plugins/logger' diff --git a/src/weather/EchartWeather.vue b/src/weather/EchartWeather.vue index 1dfd283e6e513d75aaf3ef580af032e1222e5739..cefade73ed44384af8c944abc45d36290700de1a 100644 --- a/src/weather/EchartWeather.vue +++ b/src/weather/EchartWeather.vue @@ -15,7 +15,7 @@