jhbigscreen/src/pages/init.js

20 lines
467 B
JavaScript
Raw Normal View History

2023-08-10 01:16:23 +08:00
import Vue from 'vue'
import Api from '../api/index'
import dayjs from 'dayjs'
import './style/index.less'
2023-08-15 23:08:27 +08:00
import dayfilter from '@/utils/dayfilter'
2023-08-20 00:25:52 +08:00
import {tryToJson} from '../utils/tools'
2023-08-15 23:08:27 +08:00
dayfilter(Vue);
2023-08-10 01:16:23 +08:00
Vue.prototype.$api=Api;
Vue.prototype.$bus=new Vue();
Vue.prototype.$apiPath="/jhapi"
Vue.prototype.$dt=dayjs;
2023-08-20 00:25:52 +08:00
Vue.prototype.$tryToJson=tryToJson
2023-08-23 00:03:22 +08:00
window.jhcaches={};
/*
Api.project.getInfo().then(d=>{
if(d.code==200){
window.__info__=d;
}
})
*/