appointment_system/unpackage/dist/dev/mp-weixin/utils/tabbar-i18n.js
2025-12-11 22:50:18 +08:00

25 lines
688 B
JavaScript

"use strict";
const common_vendor = require("../common/vendor.js");
const updateTabBarI18n = (vm) => {
if (!vm || !vm.$t)
return;
try {
common_vendor.index.setTabBarItem({
index: 0,
text: vm.$t("tabbar.home")
});
common_vendor.index.setTabBarItem({
index: 1,
text: vm.$t("tabbar.appointment")
});
common_vendor.index.setTabBarItem({
index: 2,
text: vm.$t("tabbar.me")
});
} catch (e) {
common_vendor.index.__f__("error", "at utils/tabbar-i18n.js:19", "更新 TabBar 国际化失败:", e);
}
};
exports.updateTabBarI18n = updateTabBarI18n;
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/tabbar-i18n.js.map