diff --git a/src/App.vue b/src/App.vue index f8502b5..908e59e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,8 +6,8 @@ import { useThemeStore } from "./stores/theme"; const theme = useThemeStore(); const items = [ { id: 1, icon: iconMenu, text: "用户界面", page: "/user" }, - { id: 2, icon: iconMenu, text: "Component Test", page: "/test" }, - { id: 3, icon: iconMenu, text: "Jtag Test", page: "/test/jtag" }, + { id: 2, icon: iconMenu, text: "ComponentTest", page: "/test" }, + { id: 3, icon: iconMenu, text: "JtagTest", page: "/test/jtag" }, ]; diff --git a/src/client.ts b/src/client.ts deleted file mode 100644 index 365dbfc..0000000 --- a/src/client.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { createTRPCProxyClient, httpBatchLink } from '@trpc/client'; -import type { AppRouter } from '../server/router'; - -export const client = createTRPCProxyClient({ - links: [ - httpBatchLink({ - url: 'http://localhost:3002', - // You can pass any HTTP headers you wish here - async headers() { - return { - authorization: document.cookie, - }; - }, - }), - ], -}); diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 587a38f..1de2ee0 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -1,10 +1,18 @@ -