main.js 851 字节
import Vue from 'vue'
import App from './App'
import Lib from './lib'
// 在main.js注册全局组件
/*import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"

Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)*/
Vue.config.productionTip = false

// 在main.js注册全局组件
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)

App.mpType = 'app'

Vue.prototype.$lib = Lib;
Vue.prototype.$navigateBack = function () {
  uni.navigateBack({
      delta: 1
  });
}

const store = Lib.$store;
const app = new Vue({
    store,
    ...App
})
app.$mount()