diff --git a/my-project-frontend/index.html b/my-project-frontend/index.html index f1b1688..e015332 100644 --- a/my-project-frontend/index.html +++ b/my-project-frontend/index.html @@ -5,6 +5,7 @@ + Vite App diff --git a/my-project-frontend/src/components/Weather.vue b/my-project-frontend/src/components/Weather.vue new file mode 100644 index 0000000..b87202a --- /dev/null +++ b/my-project-frontend/src/components/Weather.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/my-project-frontend/src/router/index.js b/my-project-frontend/src/router/index.js index efd766d..03b9a10 100644 --- a/my-project-frontend/src/router/index.js +++ b/my-project-frontend/src/router/index.js @@ -29,6 +29,10 @@ const router = createRouter({ component: () => import('@/views/IndexView.vue'), children: [ { + path: '', + name: 'topic-list', + component: () => import('@/views/forum/TopicList.vue') + }, { path: 'user-setting', name: 'user-setting', component: () => import('@/views/settings/UserSetting.vue') diff --git a/my-project-frontend/src/views/IndexView.vue b/my-project-frontend/src/views/IndexView.vue index 20c7591..fa86ece 100755 --- a/my-project-frontend/src/views/IndexView.vue +++ b/my-project-frontend/src/views/IndexView.vue @@ -89,7 +89,7 @@ function userLogout() { 校园论坛 - +