优化 router,支持 isAuth,并添加示例

This commit is contained in:
icssoa
2025-09-23 15:59:19 +08:00
parent 30750cc164
commit 3f988f2c31
10 changed files with 202 additions and 71 deletions

View File

@@ -46,9 +46,9 @@
<view class="p-3">
<view class="group" v-for="item in data" :key="item.label">
<cl-text :pt="{ className: '!text-sm !text-surface-400 mb-2 ml-2' }">{{
item.label
}}{{ item.children?.length ?? 0 }}</cl-text>
<cl-text :pt="{ className: '!text-sm !text-surface-400 mb-2 ml-2' }"
>{{ item.label }}{{ item.children?.length ?? 0 }}</cl-text
>
<view class="list">
<cl-row :gutter="10">
@@ -461,6 +461,11 @@ const data = computed<Item[]>(() => {
label: "Animation",
icon: "instance-line",
path: "/pages/demo/other/animation"
},
{
label: "Router",
icon: "compass-discover-line",
path: "/pages/demo/other/router/index"
}
]
}