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-26 22:19:33 +08:00
|
|
|
import H265Player from '../components/h265-player/index'
|
|
|
|
H265Player.install(Vue);
|
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;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
*/
|