2026-05-01 20:39:09 +08:00
|
|
|
import { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
2026-04-20 11:08:09 +08:00
|
|
|
const routes: RouteRecordRaw[] = [
|
|
|
|
|
{
|
2026-05-01 20:39:09 +08:00
|
|
|
path: '/',
|
|
|
|
|
name: 'home',
|
|
|
|
|
component: () => import('./views/HomeView.vue'),
|
2026-04-20 11:08:09 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-05-01 20:39:09 +08:00
|
|
|
path: '/publish-management',
|
|
|
|
|
name: 'publish-management',
|
|
|
|
|
component: () => import('./views/PublishManagementView.vue'),
|
2026-04-20 11:08:09 +08:00
|
|
|
},
|
2026-05-01 20:39:09 +08:00
|
|
|
{ path: '/tasks', redirect: '/publish-management' },
|
2026-04-20 11:08:09 +08:00
|
|
|
{
|
2026-05-01 20:39:09 +08:00
|
|
|
path: '/media-platforms',
|
|
|
|
|
name: 'media-platforms',
|
|
|
|
|
component: () => import('./views/AccountsView.vue'),
|
2026-04-20 11:08:09 +08:00
|
|
|
},
|
|
|
|
|
{
|
2026-05-01 20:39:09 +08:00
|
|
|
path: '/ai-platforms',
|
|
|
|
|
name: 'ai-platforms',
|
|
|
|
|
component: () => import('./views/AiPlatformsView.vue'),
|
2026-04-20 11:08:09 +08:00
|
|
|
},
|
2026-05-01 20:39:09 +08:00
|
|
|
{ path: '/accounts', redirect: '/media-platforms' },
|
|
|
|
|
{ path: '/settings', redirect: '/' },
|
|
|
|
|
{ path: '/diagnostics', redirect: '/' },
|
|
|
|
|
]
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
|
|
|
export const router = createRouter({
|
|
|
|
|
history: createWebHashHistory(),
|
2026-04-20 11:08:09 +08:00
|
|
|
routes,
|
2026-05-01 20:39:09 +08:00
|
|
|
})
|