fix(系统设置): 测试资源池引用数据较多时展示问题

--bug=1026404 --user=宋昌昌 【系统设置】测试资源池-关闭local资源池-引用接口数据较多-未显示取消和确定按钮-无法关闭 https://www.tapd.cn/55049933/s/1376496
This commit is contained in:
song-cc-rock 2023-05-29 15:04:27 +08:00 committed by fit2-zhao
parent 3c9115a2fb
commit 48c6630956
1 changed files with 3 additions and 1 deletions

View File

@ -554,7 +554,9 @@ export default {
if (row.status === 'INVALID') {
this.checkHaveTestUsePool(row).then(() => {
if (this.updatePool && this.updatePool.haveTestUsePool) {
this.$confirm(this.$t('test_resource_pool.update_prompt', [this.updatePool.testName]), this.$t('commons.prompt'), {
let testIndex = this.updatePool.testName.indexOf(";")
let subPrompt = this.updatePool.testName.substring(0, testIndex);
this.$confirm(this.$t('test_resource_pool.update_prompt', [subPrompt]), this.$t('commons.prompt'), {
confirmButtonText: this.$t('commons.confirm'),
cancelButtonText: this.$t('commons.cancel'),
type: 'warning'