Files
ClassContent/历届学生/fontendseven/项目练习/上课项目/uniapp-tpl/main.js
2024-09-27 02:06:13 +08:00

24 lines
457 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import App from './App'
import Vue from 'vue'
import store from './store'
Vue.config.productionTip = false
App.mpType = 'app'
import init from '@/config/init'
// 注册全局组件
init.VueComponents.forEach(v => Vue.component(v.name, v))
// 挂载非vue插件到vue实例中,这样可以全局调用方法
for (const key in init.NotVuePlugIn) Vue.prototype[key] = init.NotVuePlugIn[key]
const app = new Vue({
store,
...App
})
app.$mount()