Эх сурвалжийг харах

feat:预览添加二级目录

ananzhusen 1 жил өмнө
parent
commit
4493b2c49e

+ 1 - 1
src/views/components/View.vue

@@ -1271,7 +1271,7 @@ const preview = async () => {
   let width = meta2d.store.data.width||meta2d.store.options.width||1920;
   let height = meta2d.store.data.height||meta2d.store.options.height||1080;
   let minScle  = Math.min(window.innerWidth/width,window.innerHeight/height);
-  let url = `/preview?r=${Date.now() + ''}`;
+  let url = import.meta.env.BASE_URL.slice(0, -1) + `/preview?r=${Date.now() + ''}`;
   if (data.id) {
     url += `&id=${data.id}`;
   }