fix: sql请求更新接口报错

This commit is contained in:
chenjianxing 2021-02-04 18:13:07 +08:00
parent 91e1215d65
commit fe2f4e90a2
1 changed files with 23 additions and 23 deletions

View File

@ -44,19 +44,19 @@
</template> </template>
<script> <script>
import {downloadFile, getUUID} from "@/common/js/utils"; import {getUUID} from "@/common/js/utils";
import MsApiCaseList from "../case/ApiCaseList"; import MsApiCaseList from "../case/ApiCaseList";
import MsContainer from "../../../../common/components/MsContainer"; import MsContainer from "../../../../common/components/MsContainer";
import MsBottomContainer from "../BottomContainer"; import MsBottomContainer from "../BottomContainer";
import {parseEnvironment} from "../../model/EnvironmentModel"; import {parseEnvironment} from "../../model/EnvironmentModel";
import ApiEnvironmentConfig from "../environment/ApiEnvironmentConfig"; import ApiEnvironmentConfig from "../environment/ApiEnvironmentConfig";
import MsRequestResultTail from "../response/RequestResultTail"; import MsRequestResultTail from "../response/RequestResultTail";
import MsRun from "../Run"; import MsRun from "../Run";
import MsBasisParameters from "../request/database/BasisParameters"; import MsBasisParameters from "../request/database/BasisParameters";
import {REQ_METHOD} from "../../model/JsonData"; import {REQ_METHOD} from "../../model/JsonData";
import MsJmxStep from "../step/JmxStep"; import MsJmxStep from "../step/JmxStep";
export default { export default {
name: "RunTestSQLPage", name: "RunTestSQLPage",
components: { components: {
MsApiCaseList, MsApiCaseList,
@ -175,7 +175,7 @@
if (this.syncTabs.indexOf(this.api.id) === -1) { if (this.syncTabs.indexOf(this.api.id) === -1) {
this.syncTabs.push(this.api.id); this.syncTabs.push(this.api.id);
} }
this.$emit('saveApi', this.api); this.$emit('refresh');
}); });
}, },
selectTestCase(item) { selectTestCase(item) {