fix(测试跟踪): 编辑用例控制台报错

This commit is contained in:
chenjianxing 2023-03-17 10:23:52 +08:00 committed by jianxing
parent 976c975ccf
commit 6545ce43a9
2 changed files with 21 additions and 20 deletions

View File

@ -135,6 +135,7 @@
<script>
import { getProjectMemberOption } from "metersphere-frontend/src/api/user";
import MsMarkDownText from "@/business/case/components/richtext/MsMarkDownText";
import {getProjectMemberById} from "@/api/user";
export default {
name: "BaseEditItemComponent",
components: {MsMarkDownText},
@ -220,14 +221,14 @@ export default {
methods: {
getMemberOptions() {
if (this.projectId) {
getProjectMemberById(this.projectId).then((r) => {
this.handelMemberOptions(r.data);
});
getProjectMemberById(this.projectId)
.then(r => this.handleMemberOptions(r.data));
} else {
this.handelMemberOptions(r.data);
getProjectMemberOption()
.then(r => this.handleMemberOptions(r.data));
}
},
handelMemberOptions(data) {
handleMemberOptions(data) {
let tempMemberOptions = data || [];
let tempArr = [];
tempMemberOptions.forEach((e) => {

View File

@ -76,7 +76,6 @@
</div>
</template>
</ms-table-column>
</ms-table>
<ms-table-column
width="150px"
@ -92,6 +91,7 @@
</div>
</template>
</ms-table-column>
</ms-table>
<relationship-functional-relevance
:case-id="caseId"