对接接口
This commit is contained in:
@@ -9,6 +9,7 @@ import 'element-ui/lib/theme-chalk/index.css'
|
||||
import App from './App'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
import { accAdd, accSub, accMul, accDiv, filterSize } from './utils'
|
||||
|
||||
import i18n from './lang' // internationalization
|
||||
import './permission' // permission control
|
||||
@@ -17,6 +18,13 @@ if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
|
||||
Vue.http = Vue.prototype.$http = axios
|
||||
Vue.config.productionTip = false
|
||||
|
||||
// 设置公共方法
|
||||
Vue.prototype.$accAdd = accAdd
|
||||
Vue.prototype.$accSub = accSub
|
||||
Vue.prototype.$accMul = accMul
|
||||
Vue.prototype.$accDiv = accDiv
|
||||
Vue.prototype.$filterSize = filterSize
|
||||
|
||||
Vue.use(ElementUI, {
|
||||
size: Cookies.get('size') || 'medium', // set element-ui default size
|
||||
i18n: (key, value) => i18n.t(key, value)
|
||||
|
||||
Reference in New Issue
Block a user