Files
Blizzard 9d7cf720a5
ci-cd / verify (push) Successful in 1m59s
ci-cd / deploy (push) Skipped
feat: add multi-source breed encyclopedia and two-hour refresh sessions
2026-10-05 13:38:24 +08:00

18 lines
570 B
JavaScript

const tabs = [
{ path: "/pages/home/home", label: "日常", key: "daily" },
{ path: "/pages/tasks/tasks", label: "任务", key: "tasks" },
{ path: "/pages/walk/walk", label: "遛狗", key: "walk" },
{ path: "/pages/pets/pets", label: "宠物", key: "pets" },
{ path: "/pages/knowledge/knowledge", label: "知识", key: "knowledge" },
];
Component({
properties: { current: String },
data: { tabs },
methods: {
go(e) {
const path = e.currentTarget.dataset.path;
if (path !== this.data.current) wx.redirectTo({ url: path });
},
},
});