Browse Source

bug fix:国之重器详情页模型iframe url拼接错误

任一存 1 year ago
parent
commit
6c9ef54475
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/TreasureDetail.vue

+ 2 - 2
src/views/TreasureDetail.vue

@@ -95,7 +95,7 @@
               playsinline="true"
             />
             <iframe
-              :src="`${prefix}web-model/index.html#/relic-detail?model-path=${encodeURIComponent(item.filePath)}`"
+              :src="`${prefix}/web-model/index.html#/relic-detail?model-path=${encodeURIComponent(item.filePath)}`"
               frameborder="0"
             />
             <button
@@ -230,7 +230,7 @@
       <button
         v-if="canRecord && activeTabIndex === 0"
         @click="$router.push({name: 'RecordView', query: {
-          url: encodeURI(`${prefix}web-model/index.html#/relic-detail?model-path=${encodeURIComponent(modelUrlList[activeSwiperItemIndex].filePath)}`)
+          url: encodeURI(`${prefix}/web-model/index.html#/relic-detail?model-path=${encodeURIComponent(modelUrlList[activeSwiperItemIndex].filePath)}`)
         }})"
       >
         <img