src/components/constract/PerpetualContract/createOrder.vue
@@ -530,10 +530,10 @@ } if (this.isActive === 0) { // 开仓弹窗 不弹出直接确认 this.$refs.openDialog.handleSubmit(); this.$refs.openDialog.handleSubmit(type); } else { // 平仓弹窗 this.$refs.closeDialog.handleSubmit(); this.$refs.closeDialog.handleSubmit(type); } } }, src/components/constract/PerpetualContract/orderCom/openDialog.vue
@@ -134,9 +134,10 @@ close() { this.isShow = false; }, handleSubmit() { handleSubmit(type) { console.log("handleSubmit: ", type, this.sellOrBuy); const data = { direction: this.sellOrBuy, direction: type || this.sellOrBuy, price_type: this.type, ...this.info, //价格,数量,杠杆,symbol };