123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import Vue from 'vue'
- import App from './App'
- import store from './store'
- import {toast} from './utils/tools'
- import Cache from './utils/cache'
- import uView from "@/components/uview-ui";
- import minxinsApp from '@/mixins/app'
- import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
- import {router,RouterMount} from './router.js'
- import routerLink from './js_sdk/uni-simple-router/link.vue'
- Vue.component('mescroll-body', MescrollBody)
- Vue.prototype.$toast = toast
- Vue.prototype.$Cache = Cache
- Vue.config.productionTip = false
- Vue.component('RouterLink', routerLink)
- Vue.use(router)
- Vue.mixin(minxinsApp);
- Vue.use(uView);
- App.mpType = 'app'
- const app = new Vue({
- ...App,
- store
- })
- RouterMount(app,router,'#app');
- app.$mount();
- Vue.mixin({
- onShow() {
- let { title } = this
- if (this.$mp.query) {
- let setTitle = this.$mp.query.title || title
- if (setTitle) {
- uni.setNavigationBarTitle({
- title: setTitle
- })
-
-
- document.title = setTitle
-
- }
- }
- }
- })
|