基本功能实现
Change-Id: I4fb8dfa2eed093c13d7c1e4304c4b4d012512ba9
diff --git a/src/router/index.js b/src/router/index.js
index 5dd4d7b..1beac1f 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -41,8 +41,79 @@
{
path: '/:pathMatch(.*)*',
redirect: '/login'
+ },
+ {
+ path: '/torrents',
+ name: 'Torrents',
+ component: () => import('@/views/torrent/TorrentsView.vue'),
+ meta: {
+ title: 'PT Tracker - 种子浏览',
+ requiresAuth: true
}
-]
+},
+{
+ path: '/upload',
+ name: 'Upload',
+ component: () => import('@/views/torrent/UploadView.vue'),
+ meta: {
+ title: 'PT Tracker - 上传种子',
+ requiresAuth: true
+ }
+},
+{
+ path: '/torrent/:id',
+ name: 'TorrentDetail',
+ component: () => import('@/views/torrent/TorrentDetailView.vue'),
+ meta: {
+ title: 'PT Tracker - 种子详情',
+ requiresAuth: true
+ }
+},
+{
+ path: '/forum',
+ name: 'Forum',
+ component: () => import('@/views/forum/ForumView.vue'),
+ meta: {
+ title: 'PT Tracker - 论坛',
+ requiresAuth: true
+ }
+},
+{
+ path: '/forum/section/:id',
+ name: 'ForumSection',
+ component: () => import('@/views/forum/ForumSectionView.vue'),
+ meta: {
+ title: 'PT Tracker - 版块',
+ requiresAuth: true
+ }
+},
+{
+ path: '/forum/topic/:id',
+ name: 'ForumTopic',
+ component: () => import('@/views/forum/ForumTopicView.vue'),
+ meta: {
+ title: 'PT Tracker - 主题详情',
+ requiresAuth: true
+ }
+},
+// {
+// path: '/forum/topics',
+// name: 'ForumTopics',
+// component: () => impor@/views/forum/ForumTopicView.vue'),
+// meta: {
+// title: 'PT Tracker - 所有主题',
+// requiresAuth: true
+// }
+// },
+{
+ path: '/profile',
+ name: 'Profile',
+ component: () => import('@/views/auth/ProfileView.vue'),
+ meta: {
+ title: 'PT Tracker - 个人资料',
+ requiresAuth: true
+ }
+}]
const router = createRouter({
history: createWebHistory(),