|
@@ -5,13 +5,15 @@ import store from './store'
|
|
import "@/assets/style/reset.css"
|
|
import "@/assets/style/reset.css"
|
|
import "@/assets/style/my-reset.css"
|
|
import "@/assets/style/my-reset.css"
|
|
import UAParser from "@/libs/ua-parser.min.js"
|
|
import UAParser from "@/libs/ua-parser.min.js"
|
|
-import clickOutside from "@/directives/v-click-outside.js"
|
|
|
|
import mitt from "mitt"
|
|
import mitt from "mitt"
|
|
import 'viewerjs/dist/viewer.css'
|
|
import 'viewerjs/dist/viewer.css'
|
|
import VueViewer from 'v-viewer'
|
|
import VueViewer from 'v-viewer'
|
|
import ElementPlus from 'element-plus'
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css'
|
|
import 'element-plus/dist/index.css'
|
|
|
|
|
|
|
|
+import BtnBack from '@/components/BtnBack.vue'
|
|
|
|
+import OperationTip from '@/components/OperationTip.vue'
|
|
|
|
+
|
|
console.log(`version: ${process.env.VUE_APP_VERSION}`)
|
|
console.log(`version: ${process.env.VUE_APP_VERSION}`)
|
|
console.log(`Build time: ${process.env.VUE_APP_UPDATE_TIME}`)
|
|
console.log(`Build time: ${process.env.VUE_APP_UPDATE_TIME}`)
|
|
|
|
|
|
@@ -61,9 +63,9 @@ window.addEventListener('resize', () => {
|
|
})
|
|
})
|
|
|
|
|
|
// // 禁用上下文菜单
|
|
// // 禁用上下文菜单
|
|
-// document.oncontextmenu = function(e) {
|
|
|
|
-// e.preventDefault()
|
|
|
|
-// }
|
|
|
|
|
|
+document.oncontextmenu = function(e) {
|
|
|
|
+ e.preventDefault()
|
|
|
|
+}
|
|
|
|
|
|
// // safari里只能在交互行为的回调中成功地首次调用audio的play方法,所以需要一个全局的audio元素来播放随时可能需要自发播放的音频。
|
|
// // safari里只能在交互行为的回调中成功地首次调用audio的play方法,所以需要一个全局的audio元素来播放随时可能需要自发播放的音频。
|
|
// const audioNode = document.createElement("audio")
|
|
// const audioNode = document.createElement("audio")
|
|
@@ -74,10 +76,10 @@ window.addEventListener('resize', () => {
|
|
|
|
|
|
app.use(store)
|
|
app.use(store)
|
|
.use(router)
|
|
.use(router)
|
|
- .use(clickOutside)
|
|
|
|
.use(VueViewer)
|
|
.use(VueViewer)
|
|
.use(ElementPlus)
|
|
.use(ElementPlus)
|
|
- // .component('HotSpot', HotSpot)
|
|
|
|
|
|
+ .component('BtnBack', BtnBack)
|
|
|
|
+ .component('OperationTip', OperationTip)
|
|
.mount('#app')
|
|
.mount('#app')
|
|
|
|
|
|
// you can reset the default options at any other time
|
|
// you can reset the default options at any other time
|