|
|
@@ -13,6 +13,7 @@ import axios from 'axios'; //引入axios
|
|
|
import ports from './api/ports.js'; //api接口文档
|
|
|
import publicMethods from '../static/publicMethods.js';
|
|
|
import md5 from 'js-md5';
|
|
|
+import comm from './assets/common.js';
|
|
|
Vue.use(ElementUI);
|
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
@@ -20,10 +21,12 @@ Vue.config.productionTip = false;
|
|
|
Vue.prototype.$frce = frce.frce;
|
|
|
// 注册加密文档
|
|
|
Vue.prototype.$md5 = md5;
|
|
|
+
|
|
|
// 公共方法
|
|
|
Vue.prototype.$ports = ports;
|
|
|
Vue.prototype.$http = http;
|
|
|
Vue.prototype.$public = publicMethods;
|
|
|
+Vue.prototype.$comm=comm;
|
|
|
/* eslint-disable no-new */
|
|
|
new Vue({
|
|
|
el: '#app',
|