Explorar el Código

fix(ChildPageDisplay): 仅在工具存在url时渲染iframe

避免在工具无有效url时渲染无效iframe,防止出现空加载或错误页面
lsc hace 4 días
padre
commit
5f0d07cb8c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/Editor/Canvas/ChildPageDisplay.vue

+ 1 - 1
src/views/Editor/Canvas/ChildPageDisplay.vue

@@ -22,7 +22,7 @@
       <div class="question-area">
         <template v-for="(tool, index) in toolsArray" :key="tool.tool_id">
           <iframe
-          v-if="index === selectedToolIndex"
+          v-if="index === selectedToolIndex && tool.url"
           :src="tool.url + '&isSet=2' + '&timestamp=' + new Date().getTime()"
           frameborder="0"></iframe>
         </template>