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

23 lines
414 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 config from "@/config";
import store from '@/store'
App.mpType = 'app'
Vue.config.productionTip = false
config.VueComponents.forEach(v => Vue.component(v.name, v));
// 挂载自定义方法到vue实例上,实现全局访问
config.NotVuePlugins.forEach(v => Vue.prototype[v["n"]] = v["v"]);
const app = new Vue({
store,
...App
});
app.$mount()