diff --git a/src/plugins/vant.ts b/src/plugins/vant.ts index b3eab6a..255fa54 100644 --- a/src/plugins/vant.ts +++ b/src/plugins/vant.ts @@ -4,30 +4,30 @@ */ import { Button, Tabbar, TabbarItem, Sticky, NavBar, Icon, Search, DropdownMenu, DropdownItem, Image, Lazyload, Tabs, Tab, Toast, Field, Cell, CellGroup, Form, List } from 'vant' const pluginsVant = [ - Button, - Tabbar, - TabbarItem, - Sticky, - NavBar, - Icon, - Search, - DropdownMenu, - DropdownItem, - Image, - Lazyload, - Tabs, - Tab, - Toast, - Field, - Cell, - CellGroup, - Form, - List + Button, + Tabbar, + TabbarItem, + Sticky, + NavBar, + Icon, + Search, + DropdownMenu, + DropdownItem, + Image, + Lazyload, + Tabs, + Tab, + Toast, + Field, + Cell, + CellGroup, + Form, + List ] export const vantPlugins = { - install: function(vm) { - pluginsVant.forEach((item:any) => { - vm.component(item.name, item); - }); - } + install: function(vm) { + pluginsVant.forEach((item:any) => { + vm.component(item.name, item); + }); + } }; \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index 45a1147..fbe41c6 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -14,8 +14,6 @@ const childRoutes = Object.keys(viewRouterModules).map((path)=>{ } }) -console.log(childRoutes,'childRouter'); - // 根路由 const rootRoutes = Object.keys(mainRouterModules).map((path) => { const name = path.match(/\.\.\/layout\/(.*)\.vue$/)[1].toLowerCase(); @@ -33,8 +31,6 @@ const rootRoutes = Object.keys(mainRouterModules).map((path) => { const routes: Array = rootRoutes - - const router = createRouter({ history: createWebHashHistory(), routes, diff --git a/src/views/home/Home.vue b/src/views/home/Home.vue index 1e29239..79ca2e9 100644 --- a/src/views/home/Home.vue +++ b/src/views/home/Home.vue @@ -26,15 +26,6 @@ } const { list } = useShowList() - - - - // const store = useStore() - // const name = computed(() => store.state.userNmae) - // const handleBtn = () =>{ - // store.commit('getUserNmae', 'Vue') - // } -