瀏覽代碼

feat: 保存

gemercheung 1 年之前
父節點
當前提交
948ed3313b
共有 3 個文件被更改,包括 7 次插入5 次删除
  1. 1 0
      .env.development
  2. 2 1
      .env.production
  3. 4 4
      src/components/showCase.vue

+ 1 - 0
.env.development

@@ -1,3 +1,4 @@
 VITE_DOMAIN_URL="https://sit-qiushoubwg.4dage.com"
 VITE_API_URL="https://sit-qiushoubwg.4dage.com/api"
+VITE_MODEL_URL="https://model3d.4dage.com/model/showModel.html?m="
 VITE_PUBLIC_DIR="/web/"

+ 2 - 1
.env.production

@@ -1,3 +1,4 @@
 VITE_DOMAIN_URL="https://sit-qiushoubwg.4dage.com"
 VITE_API_URL="https://sit-qiushoubwg.4dage.com/api"
-VITE_PUBLIC_DIR="/web/"
+VITE_MODEL_URL="https://model3d.4dage.com/model/showModel.html?m="
+VITE_PUBLIC_DIR="/web/"

+ 4 - 4
src/components/showCase.vue

@@ -124,11 +124,11 @@ const containerRef = ref();
 const type = ref("model");
 const defaultType = ref(["model", "video", "audio", "gallery"]);
 const videoRef = ref();
+const modelUrl = import.meta.env.VITE_MODEL_URL;
 
-// const iframeURL = ref("https://www.4dmodel.com/SuperTwo/index.html?m=TEST");
-const iframeURL = ref(
-  "https://model3d.4dage.com/model/showModel.html?m=d558c919-a001-4aef-a719-18af4ed2bd82"
-);
+// ("https://model3d.4dage.com/model/showModel.html?m=d558c919-a001-4aef-a719-18af4ed2bd82");
+
+const iframeURL = ref(modelUrl + "3477401f-6ab6-49cb-b862-a2cc6830d089");
 
 const isModel = computed(() => type.value === "model");
 const isVideo = computed(() => type.value === "video");