fix(接口测试): 【接口测试】场景引用的case跳转后,工作空间信息会消失
--bug=1011712 --user=郭雨琦 【接口测试】场景引用的case跳转后,工作空间信息会消失 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001011712 相同项目跳转时,没有给空间ID设置默认值
This commit is contained in:
parent
da786fbf8e
commit
ca78cb67f4
|
@ -161,7 +161,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {getUUID, getCurrentProjectID} from "@/common/js/utils";
|
||||
import {getUUID, getCurrentProjectID, getCurrentWorkspaceId} from "@/common/js/utils";
|
||||
import {getUrl} from "@/business/components/api/automation/scenario/component/urlhelper";
|
||||
|
||||
const requireComponent = require.context('@/business/components/xpack/', true, /\.vue$/);
|
||||
|
@ -680,7 +680,7 @@ export default {
|
|||
},
|
||||
|
||||
clickResource(resource) {
|
||||
let workspaceId;
|
||||
let workspaceId = getCurrentWorkspaceId();
|
||||
let isTurnSpace = true
|
||||
if (resource.projectId !== getCurrentProjectID()) {
|
||||
isTurnSpace = false;
|
||||
|
|
|
@ -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, getUUID, strMapToObj} from "@/common/js/utils";
|
||||
import {getCurrentProjectID, getCurrentWorkspaceId, getUUID, strMapToObj} from "@/common/js/utils";
|
||||
import {STEP} from "@/business/components/api/automation/scenario/Setting";
|
||||
|
||||
export default {
|
||||
|
@ -256,7 +256,7 @@ export default {
|
|||
|
||||
},
|
||||
clickResource(resource) {
|
||||
let workspaceId;
|
||||
let workspaceId = getCurrentWorkspaceId();
|
||||
let isTurnSpace = true
|
||||
if(resource.projectId!==getCurrentProjectID()){
|
||||
isTurnSpace = false;
|
||||
|
|
Loading…
Reference in New Issue