wenbobowen 4 年之前
父节点
当前提交
59d39c42f0
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 0
      src/router/newRouter.js
  2. 2 3
      src/views/projectManage/components/testPlan.vue

+ 1 - 0
src/router/newRouter.js

@@ -255,6 +255,7 @@ const layout = [
         name: '测试计划',
         icon: 'test-plain',
         key: 'testplain',
+        hidden: true,
         component: () => import('@/views/Platform/testPage.vue'),
         meta: { title: '测试计划' }
       },

+ 2 - 3
src/views/projectManage/components/testPlan.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <iframe :src="`http://localhost:7100/#/taskTest?bizId=${bizid}&keyType=${type}_${id}`" style="width: calc(100vw - 225px); margin-left: 10px;" :height="iframeHeight" scrolling="yes" frameborder="0" />
+    <iframe :src="`http://localhost:7100/#/taskTest?bizId=${bizid}&keyType=${type}_${id}&hiddenNav=true`" style="width: calc(100vw - 225px); margin-left: 10px;" :height="iframeHeight" scrolling="auto" frameborder="0" />
   </div>
 </template>
 
@@ -17,8 +17,7 @@ export default {
     }
   },
   mounted() {
-    var height = window.innerHeight > document.body.clientHeight ? window.innerHeight : document.body.clientHeight
-    this.iframeHeight = (height - 20) + 'px'
+    this.iframeHeight = (document.body.clientHeight - 80) + 'px'
   }
 }
 </script>