提交 01321c3c 编写于 作者: 雨爱无痕

Fix issue

上级 50c16f53
...@@ -58,7 +58,7 @@ export const testToolMap = { ...@@ -58,7 +58,7 @@ export const testToolMap = {
cppunit: 'CppUnit', cppunit: 'CppUnit',
gtest: 'GTest', gtest: 'GTest',
qtest: 'QTest', qtest: 'QTest',
goTest: 'GoTest', gotest: 'GoTest',
allure: 'Allure', allure: 'Allure',
robotframework: 'RobotFramework', robotframework: 'RobotFramework',
......
...@@ -246,7 +246,7 @@ export function scriptTreeAddAttr(treeData) { ...@@ -246,7 +246,7 @@ export function scriptTreeAddAttr(treeData) {
{ hint: 'create_file', icon: 'file-add', key: 'createFile'}, { hint: 'create_file', icon: 'file-add', key: 'createFile'},
]; ];
if(item.workspaceType != 'ztf'){ if(item.workspaceType != 'ztf'){
item.toolbarItems.push({hint: testToolMap[item.workspaceType], icon: 'play', hintI18n: 'test', key: 'runTest'}) item.toolbarItems.push({hint: testToolMap[item.workspaceType] == undefined ? "" : testToolMap[item.workspaceType], icon: 'play', hintI18n: 'test', key: 'runTest'})
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册