diff --git a/web/.env.development b/web/.env.development index 7e191e6..eece8ba 100644 --- a/web/.env.development +++ b/web/.env.development @@ -1,6 +1,8 @@ VITE_API_URL = http://127.0.0.1:10010 +# VITE_API_URL = https://mock.apifox.cn/m1/2874414-0-default VITE_API_URL_PREFIX = /api/v1 VITE_OPENIM_API_ADDRESS=http://127.0.0.1:10002 -VITE_OPENIM_WS_ADDRESS=ws://127.0.0.1:10001 +# VITE_OPENIM_API_ADDRESS= https://mock.apifox.cn/m1/2874414-0-default +VITE_OPENIM_WS_ADDRESS= ws://127.0.0.1:10001 VITE_OPENIM_LOG_LEVEL=5 \ No newline at end of file diff --git a/web/src/components/Message.vue b/web/src/components/Message.vue new file mode 100644 index 0000000..07570ce --- /dev/null +++ b/web/src/components/Message.vue @@ -0,0 +1,49 @@ + + + + + diff --git a/web/src/components/PopMessage.vue b/web/src/components/PopMessage.vue new file mode 100644 index 0000000..2aa55ac --- /dev/null +++ b/web/src/components/PopMessage.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/web/src/views/chat/components/ChatInputBox.vue b/web/src/views/chat/components/ChatInputBox.vue new file mode 100644 index 0000000..e69de29 diff --git a/web/src/views/chat/components/ChatMessageBox.vue b/web/src/views/chat/components/ChatMessageBox.vue new file mode 100644 index 0000000..e69de29 diff --git a/web/src/views/chat/index.vue b/web/src/views/chat/index.vue new file mode 100644 index 0000000..a2341a9 --- /dev/null +++ b/web/src/views/chat/index.vue @@ -0,0 +1,260 @@ + + + + + diff --git a/web/src/views/login/components/LoginForm.vue b/web/src/views/login/components/LoginForm.vue index 98fb5bd..8aa8d71 100644 --- a/web/src/views/login/components/LoginForm.vue +++ b/web/src/views/login/components/LoginForm.vue @@ -9,6 +9,7 @@ import { OpenIMLoginConfig } from '@/constants'; import { IMLoginParam } from '@/api/request/openimModel'; import { ref, reactive } from 'vue'; import { useUserStore, useMenuStore } from '@/store'; +import { localCache } from '@/utils/common/cache'; const formData = reactive({ email: '', password: '' }); const showPsw = ref(false); @@ -96,7 +97,6 @@ const onSubmit = async (ctx: SubmitContext) => { .catch(err => { console.log(err); }); - }) .catch(err => { console.log(err);