fix(接口测试): 修改提示

This commit is contained in:
wxg0103 2024-03-26 21:22:09 +08:00 committed by Craftsman
parent a60ffdbddd
commit 594a95d26e
4 changed files with 7 additions and 1 deletions

View File

@ -140,7 +140,7 @@
<script setup lang="ts">
import { useVModel } from '@vueuse/core';
import FormInstance from '@arco-design/web-vue';
import FormInstance, { Message } from '@arco-design/web-vue';
import { JSONPath } from 'jsonpath-plus';
import MsButton from '@/components/pure/ms-button/index.vue';
@ -251,6 +251,9 @@
}
break;
}
if (matchResult.value.length > 0) {
Message.success(t('apiTestDebug.testSuccess'));
}
isMatched.value = true;
}

View File

@ -195,5 +195,6 @@ export default {
'apiTestDebug.noPlugin': 'Plugin has been uninstalled',
'apiTestDebug.unsavedLeave':
'The content of some tabs has not been saved. The unsaved content will be lost after leaving. Are you sure you want to leave?',
'apiTestDebug.testSuccess': 'Test success',
'apiTestDebug.searchByDataBaseName': 'Search by data source name',
};

View File

@ -182,5 +182,6 @@ export default {
'apiTestDebug.noPluginTip': '该插件已卸载,无法查看插件详情',
'apiTestDebug.noPlugin': '插件已卸载',
'apiTestDebug.unsavedLeave': '有标签页的内容未保存,离开后后未保存的内容将丢失,确定要离开吗?',
'apiTestDebug.testSuccess': '测试成功',
'apiTestDebug.searchByDataBaseName': '按数据源名称搜索',
};

View File

@ -70,6 +70,7 @@
v-if="showPool"
field="resourcePoolIds"
:label="t('system.project.resourcePool')"
asterisk-position="end"
:rules="[{ required: showPool, message: t('system.project.poolIsNotNull') }]"
>
<MsSystemPool