import { app } from '/src/app/global-api';
var $app = app;
/*
* 可通过 this.$WEAPPS_COMP.handler.xxx 访问这里定义的方法
*
* 如果需要 async-await，请修改成 export default async function() {}
*/
export default function (_a) {
    var event = _a.event;
    var value = event.detail;
    var _b = this.$WEAPPS_COMP.props.data, route = _b.route, routeType = _b.routeType;
    if (route) {
        var action = app[routeType] || app.navigateTo;
        action({ pageId: value });
    }
    else {
        this.$WEAPPS_COMP.props.events.change(value);
    }
}
;
//# sourceMappingURL=onTabItemClick.js.map