From 1b3431ccdb0efcb22798d71d75ddcdc3175f220b Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Wed, 09 Jul 2025 14:14:31 +0800
Subject: [PATCH] 0709修改
---
src/components/constract/PerpetualContract/createOrder.vue | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/components/constract/PerpetualContract/createOrder.vue b/src/components/constract/PerpetualContract/createOrder.vue
index 6dabecb..a2af37b 100644
--- a/src/components/constract/PerpetualContract/createOrder.vue
+++ b/src/components/constract/PerpetualContract/createOrder.vue
@@ -269,9 +269,11 @@
// 登录之后才能调用
if (this.existToken) {
this.initContractparams();
- this.timer = setInterval(() => {
+ this.$nextTick(() => {
+ // this.timer = setInterval(() => {
this.initContractparams();
- }, 2000);
+ // }, 2000);
+ });
}
this.price = this.newPageData.close;
@@ -283,9 +285,11 @@
});
// params:type类型
bus.on("getSesstionToken", (type) => {
- setTimeout(() => {
+ this.$nextTick(() => {
+ // setTimeout(() => {
this.initContractparams(type);
- }, 2000); //延迟调用
+ // }, 2000); //延迟调用
+ });
});
bus.on("moneyContract", (val) => {
if (val) {
@@ -530,10 +534,10 @@
}
if (this.isActive === 0) {
// 开仓弹窗 不弹出直接确认
- this.$refs.openDialog.handleSubmit();
+ this.$refs.openDialog.handleSubmit(type);
} else {
// 平仓弹窗
- this.$refs.closeDialog.handleSubmit();
+ this.$refs.closeDialog.handleSubmit(type);
}
}
},
--
Gitblit v1.9.3