diff --git a/src/components.d.ts b/src/components.d.ts index 4ef5fe8..d5ce85d 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -7,6 +7,7 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { + Chat: typeof import('./components/chat/chat.vue')['default'] Container: typeof import('./components/Container.vue')['default'] Menu: typeof import('./components/Menu.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/components/chat/chat.vue b/src/components/chat/chat.vue new file mode 100644 index 0000000..ca00b64 --- /dev/null +++ b/src/components/chat/chat.vue @@ -0,0 +1,17 @@ + + + + 你好,{{ userStore.user.name }} + + + 有什么我可以帮您的吗? + + + + + diff --git a/src/pages/index.vue b/src/pages/index.vue index 179f9b9..239f95f 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -1,6 +1,7 @@ - go - + + + +