Skip to content

Commit a3391ab

Browse files
committed
vue 启动放进来
1 parent 002c903 commit a3391ab

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/index.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import App from './components/app'
33
import router from './router'
44
import store from './store'
55
import 'font-awesome/css/font-awesome.css'
6+
7+
Vue.config.productionTip = false
68
//注册全局
79
window.axios = require('axios')
810
window.Vue = Vue
@@ -13,8 +15,17 @@ window.axios.defaults.headers.common = {
1315
'X-Requested-With': 'XMLHttpRequest'
1416
}
1517

16-
export {
18+
export default {
19+
start (){
20+
new Vue({
21+
el: '#app',
22+
router,
23+
store,
24+
render: h => h(App)
25+
})
26+
},
27+
Vue,
1728
App,
1829
router,
19-
store
30+
store,
2031
}

0 commit comments

Comments
 (0)