Explorar o código

大场景在新窗口打开,因为iframe有各种限制

任一存 %!s(int64=3) %!d(string=hai) anos
pai
achega
0063be73db
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/views/ExhibitionDetail.vue

+ 3 - 2
src/views/ExhibitionDetail.vue

@@ -196,8 +196,9 @@ export default {
         this.showMask = true
         this.videoSrc = `${this.$backEndBaseUrl}exhibition-data/${this.$route.query.exhibitionId}/${value.videoSrc}`
       } else if (value.type === 'link') {
-        this.showIframe = true
-        this.linkSrc = value.linkSrc
+        // this.showIframe = true
+        // this.linkSrc = value.linkSrc
+        window.open(value.linkSrc)
       } else if (value.type === 'image') {
         this.showMask = true
         this.imageSrc = value.src