'tpl-balancer') this.changeObsCode();
      },
      syncRulesWithOutbound(tag, setting) {
        const newTemplateSettings = this.templateSettings;
        const haveRules = newTemplateSettings.routing.rules.some((r) => r?.outboundTag === tag);
        const outboundIndex = newTemplateSettings.outbounds.findIndex((o) => o.tag === tag);
        if (!haveRules && outboundIndex > 0) {
          newTemplateSettings.outbounds.splice(outboundIndex);
        }
        if (haveRules && outboundIndex < 0) {
      