| 1234567891011121314151617181920212223242526 |
- import Vue from 'vue'
- import App from './App'
- import store from "./store/index.js"
- import Nothing from "components/common/nothing.vue"
- import $A from "common/utils/about-app.js"
- Vue.prototype.$store=store //挂载store
- Vue.prototype.$A=$A //挂载关于app
- //延时封装
- Vue.prototype.$setTimeout=function (callback=()=>{},delay) {
- setTimeout(()=>{
- return callback()
- },delay)
- }
- // 注册全局组件
- Vue.component('nothing',Nothing)
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
|