瀏覽代碼

bug fix: 全景图swf文件路径修正

任一存 2 年之前
父節點
當前提交
deced31a06
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/PanoView.vue

+ 1 - 1
src/views/PanoView.vue

@@ -169,7 +169,7 @@ export default {
       // eslint-disable-next-line no-undef
       embedpano({
         xml: `${process.env.VUE_APP_ORIGIN}/YHT/Qjkk/local/pano/${this.scene.sceneCode}/vtour/tour.xml`,
-        swf: "/static/template/tour.swf", // 文件名tour.swf没看出来有啥作用,不写也行。但它的路径决定了 %SWFPATH% 的值。
+        swf: `${process.env.BASE_URL}static/template/tour.swf`, // 文件名tour.swf没看出来有啥作用,不写也行。但它的路径决定了 %SWFPATH% 的值。
         target: "pano",
         html5: "auto",
         mobilescale: 1,