fix(接口测试): 修复场景定时任务模块树统计和列表数量不符合的缺陷

--bug=1031581 --user=王孝刚
【接口测试】首页-场景定时任务数量统计-运行中/未运行-点击进入新tab页面左侧模块树数量显示不符
https://www.tapd.cn/55049933/s/1425553
This commit is contained in:
wxg0103 2023-10-12 18:34:08 +08:00 committed by wxg0103
parent f3ff5b4180
commit 68d5f73290
3 changed files with 5 additions and 2 deletions

View File

@ -150,7 +150,9 @@ export default {
}; };
}, },
mounted() { mounted() {
this.list(); if(!this.$route.params) {
this.list()
}
}, },
watch: { watch: {
'condition.filterText'() { 'condition.filterText'() {

View File

@ -131,6 +131,7 @@ export default {
'image/svg+xml', 'image/svg+xml',
'image/apng', 'image/apng',
'image/avif', 'image/avif',
"application/octet-stream"
], ],
srcUrl: '', srcUrl: '',
}; };

View File

@ -27,7 +27,7 @@ public class JMeterBase {
private final static String SPLIT_EQ = "split=="; private final static String SPLIT_EQ = "split==";
private final static String SPLIT_AND = "split&&"; private final static String SPLIT_AND = "split&&";
private static final List<String> imageList = Arrays.asList("image/png", "image/jpeg", "image/gif", "image/bmp", "image/webp", "image/svg+xml", "image/apng", "image/avif"); private static final List<String> imageList = Arrays.asList("image/png", "image/jpeg", "image/gif", "image/bmp", "image/webp", "image/svg+xml", "image/apng", "image/avif", "application/octet-stream");
public static HashTree getHashTree(Object scriptWrapper) throws Exception { public static HashTree getHashTree(Object scriptWrapper) throws Exception {
Field field = scriptWrapper.getClass().getDeclaredField("testPlan"); Field field = scriptWrapper.getClass().getDeclaredField("testPlan");