From 5993f7f67a2e39296e8d430bd06bc6df4512b014 Mon Sep 17 00:00:00 2001 From: liugang Date: Wed, 9 Aug 2023 10:33:37 +0800 Subject: [PATCH] * testcase: terminate function if isn't nessacary. --- module/testcase/js/common.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/testcase/js/common.js b/module/testcase/js/common.js index cc45cac9e0..8212bf093a 100644 --- a/module/testcase/js/common.js +++ b/module/testcase/js/common.js @@ -228,6 +228,8 @@ function setModules(productID, branchID, num) */ function setStories() { + if($('#story').length == 0) return false; + productID = $('#product').val(); branch = $('#branch').val(); moduleID = $('#module').val(); @@ -270,6 +272,8 @@ function setPreview() function setScenes() { + if($('#sceneIdBox').length == 0) return false; + productID = $('#product').val(); branch = $('#branch').val(); moduleID = $('#module').val();