diff --git a/apps/admin-web/src/i18n/messages/en-US.ts b/apps/admin-web/src/i18n/messages/en-US.ts index 6d42ac1..15b1a9f 100644 --- a/apps/admin-web/src/i18n/messages/en-US.ts +++ b/apps/admin-web/src/i18n/messages/en-US.ts @@ -244,6 +244,18 @@ const enUS = { title: 'AI Point Usage', description: 'Review AI point balance, cycle rules, and recent usage records.', }, + notFound: { + title: 'Page not found', + description: 'The link you opened might have moved or no longer exists.', + }, + }, + notFound: { + title: 'This page got lost', + description: + "We couldn't find anything at this address. The URL might be mistyped, or the page has been removed.", + pathLabel: 'Requested path', + back: 'Go back', + home: 'Back to workspace', }, aiPoints: { balance: 'Available Points', diff --git a/apps/admin-web/src/i18n/messages/zh-CN.ts b/apps/admin-web/src/i18n/messages/zh-CN.ts index 840efc4..4f5de9a 100644 --- a/apps/admin-web/src/i18n/messages/zh-CN.ts +++ b/apps/admin-web/src/i18n/messages/zh-CN.ts @@ -233,6 +233,17 @@ const zhCN = { title: "AI 点数明细", description: "查看当前套餐 AI 点数余额、周期规则和最近消耗流水。", }, + notFound: { + title: "页面不存在", + description: "你访问的链接可能已经失效或被移动。", + }, + }, + notFound: { + title: "页面走丢了", + description: "我们没有找到这个地址对应的内容,可能链接拼写有误,或者页面已经下线。", + pathLabel: "请求路径", + back: "返回上一页", + home: "回到工作台", }, aiPoints: { balance: "可用点数", diff --git a/apps/admin-web/src/router/index.ts b/apps/admin-web/src/router/index.ts index ec815d3..b6649c7 100644 --- a/apps/admin-web/src/router/index.ts +++ b/apps/admin-web/src/router/index.ts @@ -262,6 +262,16 @@ const router = createRouter({ navKey: '/account/ai-points', }, }, + { + path: ':pathMatch(.*)*', + name: 'not-found', + component: () => import('@/views/NotFoundView.vue'), + meta: { + titleKey: 'route.notFound.title', + descriptionKey: 'route.notFound.description', + navKey: null, + }, + }, ], }, ], diff --git a/apps/admin-web/src/views/NotFoundView.vue b/apps/admin-web/src/views/NotFoundView.vue new file mode 100644 index 0000000..f97e690 --- /dev/null +++ b/apps/admin-web/src/views/NotFoundView.vue @@ -0,0 +1,256 @@ + + + + +