fix
Helius
2021-02-20 45fb4b11ad51bb38306765b11a6747402e382cee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import Vue from 'vue'
import App from './App'
import httpUtils from './common/jssdk/httpUtils.js'
import utils from './common/jssdk/utils.js'
import toast from './common/jssdk/toast.js'
import filters from './common/jssdk/filters.js'
 
import noRecord from './components/noRecord/index';  
 
Vue.prototype.$httpUtils = httpUtils
Vue.prototype.$utils = utils
Vue.prototype.$toast = toast
Vue.prototype.$filters = filters
 
// 注册全局过滤器
Object.keys(filters).map(v => {
    Vue.filter(v, filters[v])
})
 
// 注册全局组件
Vue.component('noRecord', noRecord);
 
Vue.config.productionTip = false
 
App.mpType = 'app'
 
const app = new Vue({
    ...App
})
app.$mount()