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.
37 lines
1.0 KiB
37 lines
1.0 KiB
import App from './App.vue'
|
|
import router from './router'
|
|
import store from './store'
|
|
import i18n from './lang';
|
|
import http from "@/api/axios";
|
|
import VueClipBoard from 'vue-clipboard2'
|
|
import JsonExcel from 'vue-json-excel'
|
|
import '@/style/index.less'
|
|
Vue.component('downloadExcel', JsonExcel)
|
|
import md5 from 'js-md5';
|
|
|
|
import moment from 'moment';
|
|
import myModal from '@/components/myModal.vue';
|
|
Vue.component('my-modal', myModal);
|
|
Vue.prototype.$moment = moment;
|
|
Vue.prototype.$md5 = md5;
|
|
Vue.use(VueClipBoard)
|
|
Vue.config.productionTip = false;
|
|
Vue.prototype.$http = http;
|
|
Vue.prototype.ellipsisByLength = function (str, length = 4, flag = true) {
|
|
return str.length > 2 * length && flag
|
|
? `${str.slice(0, length)}...${str.slice(-length)}`
|
|
: str;
|
|
}
|
|
|
|
|
|
Vue.prototype.ellipsisByLength12 = function (str, length = 10, flag = true) {
|
|
return str.length > 2 * length && flag
|
|
? `${str.slice(0, length)}...${str.slice(-length)}`
|
|
: str;
|
|
}
|
|
new Vue({
|
|
router,
|
|
store,
|
|
i18n,
|
|
render: h => h(App)
|
|
}).$mount('#app')
|