li.shaoyi 3 vuotta sitten
vanhempi
commit
4769817a5f

+ 1 - 1
src/services/index.ts

@@ -155,7 +155,7 @@ export default new (class LifeCycleCtr {
     tradingRelevant(socket: MTP2WebSocket<Package50>) {
         // eslint-disable-next-line @typescript-eslint/no-this-alias
         const _this = this
-        const timeout = 2000; // 延迟推送消息,防止短时间内重复请求
+        const timeout = 1000; // 延迟推送消息,防止短时间内重复请求
 
         // 推送信息
         socket.onReceivePush = (_self, msg) => {

+ 1 - 1
src/views/order/swap_the_order/components/swap_commodity_contract_summary/components/swap_commodity_contract_summary_order_closed/index.vue

@@ -128,7 +128,7 @@ export default defineComponent({
           OperatorID: geLoginID_number()!, // uint64 操作员账号ID
         };
         requestResultLoadingAndInfo(holderClose, param, loading, ['平仓成功', '平仓失败:']).then(() => {
-          cancel(true);
+          cancel();
         });
       });
     }