fix(测试跟踪): 编辑用例控制台报错
This commit is contained in:
parent
90f75d204f
commit
d5940c2c50
|
@ -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) => {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue