fix(接口测试): 场景步骤导入显示项目名称控制

--bug=1011673
--user=郭雨琦
【接口测试】场景编辑页面-引用/复制当前项目下的场景-显示项目名称
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001011673
This commit is contained in:
guoyuqi 2022-03-24 17:08:11 +08:00 committed by fit2-zhao
parent c96deec147
commit cee04ceb9f
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ import MsTcpBasisParameters from "../../../definition/components/request/tcp/Tcp
import MsDubboBasisParameters from "../../../definition/components/request/dubbo/BasisParameters";
import MsApiRequestForm from "../../../definition/components/request/http/ApiHttpRequestForm";
import ApiBaseComponent from "../common/ApiBaseComponent";
import {getCurrentProjectID, getCurrentWorkspaceId, getUUID, strMapToObj} from "@/common/js/utils";
import {getCurrentProjectID, getUUID, strMapToObj} from "@/common/js/utils";
import {STEP} from "@/business/components/api/automation/scenario/Setting";
export default {
@ -249,7 +249,7 @@ export default {
}
},
getProjectName(id) {
if (this.projectId !== id) {
if (id !== getCurrentProjectID()) {
const project = this.projectList.find(p => p.id === id);
return project ? project.name : "";
}