64 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
import App from './App'
 | 
						|
 | 
						|
// #ifndef VUE3
 | 
						|
import Vue from 'vue'
 | 
						|
import uview from '@/uni_modules/uview-ui'
 | 
						|
import store from '@/store/index.js'
 | 
						|
import Vue2OrgTree from 'vue-tree-color'
 | 
						|
import * as echarts from 'echarts'
 | 
						|
import { formatCurrency } from '@/util/index'
 | 
						|
Vue.prototype.$echarts = echarts
 | 
						|
Vue.use(Vue2OrgTree)
 | 
						|
import axios from 'axios'
 | 
						|
import { saveAs } from 'file-saver'
 | 
						|
window.wx = {}
 | 
						|
 | 
						|
/*底部数据*/
 | 
						|
 | 
						|
Vue.prototype.$store = store
 | 
						|
Vue.use(uview)
 | 
						|
Vue.config.productionTip = false
 | 
						|
App.mpType = 'app'
 | 
						|
const app = new Vue({
 | 
						|
  ...App,
 | 
						|
})
 | 
						|
 | 
						|
Vue.config.ignoredElements = [
 | 
						|
  ...Vue.config.ignoredElements,
 | 
						|
  'wx-open-launch-weapp',
 | 
						|
]
 | 
						|
 | 
						|
// 复制
 | 
						|
import VueClipboard from 'vue-clipboard2'
 | 
						|
Vue.use(VueClipboard)
 | 
						|
 | 
						|
// #endif
 | 
						|
import {
 | 
						|
  numberToCurrencyNo,
 | 
						|
  toThousandthAndKeepDecimal,
 | 
						|
  isLocal,
 | 
						|
  isLocaled,
 | 
						|
} from '@/util/numberToCurrency'
 | 
						|
Vue.prototype.isLocaled = isLocaled
 | 
						|
// 配置全局过滤器,实现数字千分位格式
 | 
						|
Vue.filter('numberToCurrency', formatCurrency)
 | 
						|
Vue.filter('toThousandthAndKeepDecimal', toThousandthAndKeepDecimal)
 | 
						|
// 配置全局过滤器,实现数字千分位格式
 | 
						|
Vue.filter('isLocal', isLocal)
 | 
						|
import i18n from '@/util/i18n/index'
 | 
						|
Vue.prototype._i18n = i18n
 | 
						|
 | 
						|
// #ifdef VUE3
 | 
						|
import { createSSRApp } from 'vue'
 | 
						|
export function createApp() {
 | 
						|
  const app = createSSRApp(App)
 | 
						|
  app.use(i18n)
 | 
						|
  return {
 | 
						|
    app,
 | 
						|
    store,
 | 
						|
  }
 | 
						|
}
 | 
						|
// #endif
 | 
						|
require('@/config/request.js')(app)
 | 
						|
app.$mount()
 |