You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
import Vue from 'vue'; |
|
import App from './App'; |
|
|
|
import store from './store' |
|
// import schema from 'async-validator' |
|
import dialog from './utils/dialog' |
|
import cookie from '@/utils/store/cookie' |
|
import cuCustom from '@/components/colorui/components/cu-custom.vue' |
|
|
|
import { parseRoute, _router, parseQuery } from '@/utils' |
|
import { VUE_APP_RESOURCES_URL, VUE_APP_API_URL } from '@/config' |
|
Vue.component('cu-custom', cuCustom) |
|
Vue.config.productionTip = false |
|
Vue.config.devtools = process.env.NODE_ENV !== 'production' |
|
|
|
import uView from "uview-ui"; |
|
Vue.use(uView); |
|
|
|
// 全局mixins,用于实现setData等功能'; |
|
import Mixin from './polyfill/mixins'; |
|
Vue.mixin(Mixin); |
|
|
|
Vue.config.productionTip = false |
|
App.mpType = 'app' |
|
Vue.prototype.$store = store |
|
|
|
const app = new Vue({ |
|
...App, |
|
store, |
|
}); |
|
|
|
Object.defineProperty(Vue.prototype, '$yrouter', { |
|
get() { |
|
return _router |
|
}, |
|
}) |
|
|
|
Object.defineProperty(Vue.prototype, '$yroute', { |
|
get() { |
|
return this._route |
|
}, |
|
}) |
|
|
|
Vue.prototype.$VUE_APP_API_URL = VUE_APP_API_URL |
|
Vue.component('cu-custom', cuCustom) |
|
app.$mount();
|
|
|