2026-04-19 14:18:20 +08:00
|
|
|
import { createRouter, createWebHashHistory } from "vue-router";
|
|
|
|
|
|
|
|
|
|
import AccountsView from "./views/AccountsView.vue";
|
|
|
|
|
import AiPlatformsView from "./views/AiPlatformsView.vue";
|
|
|
|
|
import DiagnosticsView from "./views/DiagnosticsView.vue";
|
|
|
|
|
import HomeView from "./views/HomeView.vue";
|
2026-04-20 09:52:48 +08:00
|
|
|
import PublishManagementView from "./views/PublishManagementView.vue";
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
|
|
|
export const router = createRouter({
|
|
|
|
|
history: createWebHashHistory(),
|
|
|
|
|
routes: [
|
|
|
|
|
{ path: "/", name: "home", component: HomeView },
|
2026-04-20 09:52:48 +08:00
|
|
|
{ path: "/publish-management", name: "publish-management", component: PublishManagementView },
|
|
|
|
|
{ path: "/tasks", redirect: "/publish-management" },
|
2026-04-19 14:18:20 +08:00
|
|
|
{ path: "/media-platforms", name: "media-platforms", component: AccountsView },
|
|
|
|
|
{ path: "/ai-platforms", name: "ai-platforms", component: AiPlatformsView },
|
|
|
|
|
{ path: "/accounts", redirect: "/media-platforms" },
|
|
|
|
|
{ path: "/diagnostics", name: "diagnostics", component: DiagnosticsView },
|
|
|
|
|
],
|
|
|
|
|
});
|