Sfoglia il codice sorgente

mod:检查镜头是否合适的测试图调整

panqiuyao 8 mesi fa
parent
commit
650561c6c9
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      frontend/src/views/Photography/check.vue

+ 5 - 1
frontend/src/views/Photography/check.vue

@@ -22,7 +22,7 @@
             </div>
             <div class="camera-preview  flex col center ">
               <div class="camera-preview-img" v-if="step === 1">
-                <img v-if="previewKey" class="camera-img" :src="preview+'?key='+previewKey" />
+                <img v-if="previewKey" class="camera-img" :src="previewSrc" />
                 <div class="example-image flex-col" v-if="!isSetting && previewKey > 1"><img src="https://huilimaimg.cnhqt.com/frontend/zhihuiyin/demo.jpg?x-oss-process=image/resize,w_400"></div>
               </div>
               <template v-if="step === 2" >
@@ -122,6 +122,10 @@ import {ElMessage} from "element-plus";
 const previewKey = ref(0)
 const preview = ref(digiCamControlWEB+'liveview.jpg')
 
+const previewSrc = computed(()=>{
+  let time = new Date().getTime()
+  return preview.value+'?key='+previewKey.value+'&time='+time
+})
 const step = ref(1)
 function checkConfirm(init){
   step.value =1