5.10航天ui交易所pc端,代码jiem-pc
lxf
2025-07-06 2d236d56da1c961ea0c411283a4c252788494b4c
关闭2秒调用一次的初始化接口
1 files modified
12 ■■■■■ changed files
src/components/constract/PerpetualContract/createOrder.vue 12 ●●●●● patch | view | raw | blame | history
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) {