computed: {
    // 监听以下参数变化
    arguments() {
      const { shipCoId, shippingAgentId, configType, type, shipCoName } = this
      return {
        shipCoId,
        configType,
        type,
        shippingAgentId,
        shipCoName
      }
    }
  },
   watch: {
    // 监听切换事件,触发保存
    arguments(newVal, oldVal) {
      if (oldVal.shipCoId && oldVal.configType && oldVal.type && oldVal.shippingAgentId) {
        this.switchSave(oldVal)
      }
    }
  },
Logo

欢迎加入 MCP 技术社区!与志同道合者携手前行,一同解锁 MCP 技术的无限可能!

更多推荐