diff --git a/src/App.vue b/src/App.vue index 7db6531..8f35555 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,10 @@ - + + + - + diff --git a/src/layouts/index.vue b/src/layouts/index.vue deleted file mode 100644 index f3b5850..0000000 --- a/src/layouts/index.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/src/main.ts b/src/main.ts index db75791..3189c63 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,12 +5,12 @@ import { createPinia } from 'pinia' import TDesign from 'tdesign-vue-next'; import App from './App.vue' -import router from './router' +// import router from './router' const app = createApp(App) app.use(createPinia()) app.use(TDesign); -app.use(router) +// app.use(router) app.mount('#app') diff --git a/src/pages/home-page/index.vue b/src/pages/home-page/index.vue deleted file mode 100644 index 08da24d..0000000 --- a/src/pages/home-page/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - 1 - - - - - diff --git a/src/pages/index.vue b/src/pages/index.vue new file mode 100644 index 0000000..fbea1e1 --- /dev/null +++ b/src/pages/index.vue @@ -0,0 +1,15 @@ + + + + + Header + Content + Footer + + + + + + + + diff --git a/src/router/index.ts b/src/router/index.ts index b431257..dd299bf 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,20 +1,19 @@ -import { createRouter, createWebHistory } from 'vue-router' -import Layout from '@/layouts/index.vue' +// import { createRouter, createWebHistory } from 'vue-router' -const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), - routes: [ - { - path: '/', - name: 'home', - component: Layout - }, - { - path: '/home', - name: 'home', - component: () => import('@/pages/home-page/index.vue') - } - ] -}) +// const router = createRouter({ +// history: createWebHistory(import.meta.env.BASE_URL), +// routes: [ +// { +// path: '/', +// name: 'home', +// component: ()=>import('@/pages/index.vue') +// }, +// { +// path: '/home', +// name: 'home', +// component: ()=>import('@/pages/index.vue') +// } +// ] +// }) -export default router +// export default router