mirror of
https://github.com/xiangshu233/vue3-vant4-mobile.git
synced 2025-04-05 19:42:05 +08:00
chore: ⏪ add example
This commit is contained in:
parent
18c7ec1a32
commit
752b8ee8ca
@ -99,9 +99,9 @@ const routeModuleList: Array<RouteRecordRaw> = [
|
|||||||
path: '/editNickname',
|
path: '/editNickname',
|
||||||
name: 'EditNickname',
|
name: 'EditNickname',
|
||||||
meta: {
|
meta: {
|
||||||
title: '修改昵称',
|
title: '修改昵称(该页面已缓存)',
|
||||||
innerPage: true,
|
innerPage: true,
|
||||||
keepAlive: false,
|
keepAlive: true,
|
||||||
},
|
},
|
||||||
component: () => import('@/views/my/EditNickname.vue'),
|
component: () => import('@/views/my/EditNickname.vue'),
|
||||||
},
|
},
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
<van-switch v-model="checked" size="22" @click="toggle()" />
|
<van-switch v-model="checked" size="22" @click="toggle()" />
|
||||||
</template>
|
</template>
|
||||||
</van-cell>
|
</van-cell>
|
||||||
|
<template v-for="item in menuItems" :key="item.route">
|
||||||
|
<van-cell :title="item.title" :to="item.route" is-link />
|
||||||
|
</template>
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -32,6 +35,11 @@ function toggle() {
|
|||||||
toggleDark()
|
toggleDark()
|
||||||
designStore.setDarkMode(isDark.value ? 'dark' : 'light')
|
designStore.setDarkMode(isDark.value ? 'dark' : 'light')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const menuItems = [
|
||||||
|
{ title: '🐗 keep-alive', route: '/editNickname' },
|
||||||
|
{ title: '🦘 404 页演示', route: '/404' },
|
||||||
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user