mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-08-30 11:19:46 +08:00
style:代码格式更改
This commit is contained in:
parent
0bcc6fbbf4
commit
f988dfb0c4
@ -14,8 +14,6 @@ const childRoutes = Object.keys(viewRouterModules).map((path)=>{
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(childRoutes,'childRouter');
|
|
||||||
|
|
||||||
// 根路由
|
// 根路由
|
||||||
const rootRoutes = Object.keys(mainRouterModules).map((path) => {
|
const rootRoutes = Object.keys(mainRouterModules).map((path) => {
|
||||||
const name = path.match(/\.\.\/layout\/(.*)\.vue$/)[1].toLowerCase();
|
const name = path.match(/\.\.\/layout\/(.*)\.vue$/)[1].toLowerCase();
|
||||||
@ -33,8 +31,6 @@ const rootRoutes = Object.keys(mainRouterModules).map((path) => {
|
|||||||
|
|
||||||
const routes: Array<RouteRecordRaw> = rootRoutes
|
const routes: Array<RouteRecordRaw> = rootRoutes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHashHistory(),
|
history: createWebHashHistory(),
|
||||||
routes,
|
routes,
|
||||||
|
@ -26,15 +26,6 @@
|
|||||||
}
|
}
|
||||||
const { list } = useShowList()
|
const { list } = useShowList()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// const store = useStore()
|
|
||||||
// const name = computed(() => store.state.userNmae)
|
|
||||||
// const handleBtn = () =>{
|
|
||||||
// store.commit('getUserNmae', 'Vue')
|
|
||||||
// }
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -50,9 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="py-5">
|
<div class="py-5">
|
||||||
<van-list
|
<van-list finished-text="没有更多了">
|
||||||
finished-text="没有更多了"
|
|
||||||
>
|
|
||||||
<van-cell v-for="(item, index) in list" :key="index" :title="item.title" icon="success" />
|
<van-cell v-for="(item, index) in list" :key="index" :title="item.title" icon="success" />
|
||||||
</van-list>
|
</van-list>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user