forked from snowzijun/vue-vant-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fengc-c
authored and
fengc-c
committed
Jul 12, 2020
1 parent
15a2b4f
commit 7fc9ba7
Showing
2 changed files
with
43 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
import Vue from 'vue' | ||
|
||
// 用于控制浏览器前进后退 使用keep-alive | ||
import Navigation from 'vue-navigation' | ||
|
||
import FastClick from 'fastclick' | ||
|
||
import App from './App.vue' | ||
import store from './store' | ||
import router from './router' | ||
|
||
// 安装基础组件 与自定义组件 | ||
import BaseComponent from './base' | ||
import CustomComponent from './components' | ||
|
||
Vue.use(BaseComponent, {}) | ||
Vue.use(CustomComponent, {}) | ||
|
||
Vue.config.productionTip = false | ||
|
||
// 处理点击事件延迟300ms问题 | ||
FastClick.attach(document.body) | ||
|
||
// 用于控制浏览器前进后退缓存 | ||
Vue.use(Navigation, { | ||
router, | ||
store | ||
}) | ||
|
||
// 开发环境下面使用vConsole进行调试 | ||
if (process.env.NODE_ENV === 'development') { | ||
const VConsole = require('vconsole') | ||
new VConsole() | ||
} | ||
|
||
new Vue({ | ||
router, | ||
store, | ||
render: h => h(App) | ||
}).$mount('#app') | ||
import Vue from 'vue' | ||
|
||
// 用于控制浏览器前进后退 使用keep-alive | ||
import Navigation from 'vue-navigation' | ||
|
||
import FastClick from 'fastclick' | ||
|
||
import App from './App.vue' | ||
import store from './store' | ||
import router from './router' | ||
|
||
// 安装基础组件 与自定义组件 | ||
import BaseComponent from './base' | ||
import CustomComponent from './components' | ||
|
||
Vue.use(BaseComponent, {}) | ||
Vue.use(CustomComponent, {}) | ||
|
||
Vue.config.productionTip = false | ||
|
||
// 处理点击事件延迟300ms问题 | ||
FastClick.attach(document.body) | ||
|
||
// 用于控制浏览器前进后退缓存 | ||
Vue.use(Navigation, { | ||
router, | ||
store | ||
}) | ||
|
||
// 开发环境下面使用vConsole进行调试 | ||
if (process.env.NODE_ENV === 'development') { | ||
const VConsole = require('vconsole') | ||
new VConsole() | ||
} | ||
|
||
new Vue({ | ||
router, | ||
store, | ||
render: h => h(App) | ||
}).$mount('#app') |