2026-04-20 11:08: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[] = [
|
|
|
|
|
{
|
|
|
|
|
path: "/",
|
|
|
|
|
name: "home",
|
|
|
|
|
component: () => import("./views/HomeView.vue"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/publish-management",
|
|
|
|
|
name: "publish-management",
|
|
|
|
|
component: () => import("./views/PublishManagementView.vue"),
|
|
|
|
|
},
|
|
|
|
|
{ path: "/tasks", redirect: "/publish-management" },
|
|
|
|
|
{
|
|
|
|
|
path: "/media-platforms",
|
|
|
|
|
name: "media-platforms",
|
|
|
|
|
component: () => import("./views/AccountsView.vue"),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/ai-platforms",
|
|
|
|
|
name: "ai-platforms",
|
|
|
|
|
component: () => import("./views/AiPlatformsView.vue"),
|
|
|
|
|
},
|
|
|
|
|
{ path: "/accounts", redirect: "/media-platforms" },
|
2026-04-30 22:00:01 +08:00
|
|
|
{ path: "/settings", redirect: "/" },
|
|
|
|
|
{ path: "/diagnostics", redirect: "/" },
|
2026-04-20 11:08:09 +08:00
|
|
|
];
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
|
|
|
export const router = createRouter({
|
|
|
|
|
history: createWebHashHistory(),
|
2026-04-20 11:08:09 +08:00
|
|
|
routes,
|
2026-04-19 14:18:20 +08:00
|
|
|
});
|