|
@@ -10,6 +10,17 @@ 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 VueLazyLoad from 'vue3-lazyload'
|
|
|
|
+
|
|
|
|
+// import BtnBack from '@/components/BtnBack.vue'
|
|
|
|
+// import BtnClickMe from '@/components/BtnClickMe.vue'
|
|
|
|
+// import OperationTip from '@/components/OperationTip.vue'
|
|
|
|
+// import HotspotComp from '@/components/HotspotComp.vue'
|
|
|
|
+// import HotspotForHomepage from '@/components/HotspotForHomepage.vue'
|
|
|
|
+// import SerialFrames from '@/components/LongImageSerialFrames.vue'
|
|
|
|
+// import BtnSkip from '@/components/BtnSkip.vue'
|
|
|
|
+// import PaginationComp from '@/components/PaginationComp.vue'
|
|
|
|
+// import ProgressBar from '@/components/ProgressBar.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}`)
|
|
@@ -60,9 +71,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")
|
|
@@ -75,7 +86,18 @@ app.use(store)
|
|
.use(router)
|
|
.use(router)
|
|
.use(VueViewer)
|
|
.use(VueViewer)
|
|
.use(ElementPlus)
|
|
.use(ElementPlus)
|
|
- // .component('HotSpot', HotSpot)
|
|
|
|
|
|
+ .use(VueLazyLoad)
|
|
|
|
+// .component('BtnBack', BtnBack)
|
|
|
|
+// .component('BtnClickMe', BtnClickMe)
|
|
|
|
+// .component('OperationTip', OperationTip)
|
|
|
|
+// .component('HotspotComp', HotspotComp)
|
|
|
|
+// .component('HotspotForHomepage', HotspotForHomepage)
|
|
|
|
+// .component('Swiper', Swiper)
|
|
|
|
+// .component('SwiperSlide', SwiperSlide)
|
|
|
|
+// .component('SerialFrames', SerialFrames)
|
|
|
|
+// .component('BtnSkip', BtnSkip)
|
|
|
|
+// .component('PaginationComp', PaginationComp)
|
|
|
|
+// .component('ProgressBar', ProgressBar)
|
|
.mount('#app')
|
|
.mount('#app')
|
|
|
|
|
|
// you can reset the default options at any other time
|
|
// you can reset the default options at any other time
|