diff --git a/src/pages/tokens/index.vue b/src/pages/tokens/index.vue new file mode 100644 index 0000000..7cf9f09 --- /dev/null +++ b/src/pages/tokens/index.vue @@ -0,0 +1,27 @@ + + + diff --git a/src/stores/app.ts b/src/stores/app.ts index 1fbde25..c128933 100644 --- a/src/stores/app.ts +++ b/src/stores/app.ts @@ -21,6 +21,11 @@ export const useAppStore = defineStore("app", { text: "工具", to: "/tools", }, + { + icon: "mdi-key", + text: "令牌", + to: "/tokens", + }, ], }), }); diff --git a/src/typed-router.d.ts b/src/typed-router.d.ts index 56f7c39..1ecabc2 100644 --- a/src/typed-router.d.ts +++ b/src/typed-router.d.ts @@ -28,6 +28,7 @@ declare module 'vue-router/auto-routes' { '/auth/login': RouteRecordInfo<'/auth/login', '/auth/login', Record, Record>, '/chats/[id]/': RouteRecordInfo<'/chats/[id]/', '/chats/:id', { id: ParamValue }, { id: ParamValue }>, '/public_chat/': RouteRecordInfo<'/public_chat/', '/public_chat', Record, Record>, + '/tokens/': RouteRecordInfo<'/tokens/', '/tokens', Record, Record>, '/tools/': RouteRecordInfo<'/tools/', '/tools', Record, Record>, '/tools/create': RouteRecordInfo<'/tools/create', '/tools/create', Record, Record>, '/tools/validate': RouteRecordInfo<'/tools/validate', '/tools/validate', Record, Record>,