diff --git a/Yi.Ai.Vue3/src/api/chat/index.ts b/Yi.Ai.Vue3/src/api/chat/index.ts index 1c74d6ec..58b37f65 100644 --- a/Yi.Ai.Vue3/src/api/chat/index.ts +++ b/Yi.Ai.Vue3/src/api/chat/index.ts @@ -3,7 +3,6 @@ import { get, post } from '@/utils/request'; // 发送消息 export const send = (data: SendDTO) => post('/ai-chat/send', data); -// export const send = (data: SendDTO) => post('/chat/send', data); // 新增对应会话聊天记录 export function addChat(data: ChatMessageVo) { diff --git a/Yi.Ai.Vue3/src/assets/images/user.png b/Yi.Ai.Vue3/src/assets/images/user.png new file mode 100644 index 00000000..a3e2b2ae Binary files /dev/null and b/Yi.Ai.Vue3/src/assets/images/user.png differ diff --git a/Yi.Ai.Vue3/src/components/FilesSelect/index.vue b/Yi.Ai.Vue3/src/components/FilesSelect/index.vue index 63427e8e..40fd9620 100644 --- a/Yi.Ai.Vue3/src/components/FilesSelect/index.vue +++ b/Yi.Ai.Vue3/src/components/FilesSelect/index.vue @@ -35,7 +35,6 @@ const { reset, open, onChange } = useFileDialog({ onChange((files) => { if (!files) return; - console.log('files', files); const arr = [] as FilesList[]; for (let i = 0; i < files!.length; i++) { const file = files![i]; diff --git a/Yi.Ai.Vue3/src/components/IconSelect/index.vue b/Yi.Ai.Vue3/src/components/IconSelect/index.vue index 9a4b287a..4c9da714 100644 --- a/Yi.Ai.Vue3/src/components/IconSelect/index.vue +++ b/Yi.Ai.Vue3/src/components/IconSelect/index.vue @@ -8,7 +8,6 @@ const { copy } = useClipboard(); const name = ref(''); const iconList = ref(icons); -console.log(icons); function filterIcons() { iconList.value = JSON.parse(JSON.stringify(icons)); diff --git a/Yi.Ai.Vue3/src/components/LoginDialog/components/FormLogin/AccountPassword.vue b/Yi.Ai.Vue3/src/components/LoginDialog/components/FormLogin/AccountPassword.vue index 7ffb74e9..76d98cb7 100644 --- a/Yi.Ai.Vue3/src/components/LoginDialog/components/FormLogin/AccountPassword.vue +++ b/Yi.Ai.Vue3/src/components/LoginDialog/components/FormLogin/AccountPassword.vue @@ -30,7 +30,6 @@ async function handleSubmit() { try { await formRef.value?.validate(); const res = await login(formModel); - console.log(res, 'res'); res.data.token && userStore.setToken(res.data.token); res.data.userInfo && userStore.setUserInfo(res.data.userInfo); ElMessage.success('登录成功'); diff --git a/Yi.Ai.Vue3/src/components/LoginDialog/components/QrCodeLogin/index.vue b/Yi.Ai.Vue3/src/components/LoginDialog/components/QrCodeLogin/index.vue index b6aa27b3..b99fee5d 100644 --- a/Yi.Ai.Vue3/src/components/LoginDialog/components/QrCodeLogin/index.vue +++ b/Yi.Ai.Vue3/src/components/LoginDialog/components/QrCodeLogin/index.vue @@ -57,9 +57,7 @@ async function checkConfirmStatus() { // 模拟登录逻辑 如果在客户端已确认,则会调用这个方法进行登录 async function mockLogin() { // 模拟登录成功逻辑 - console.log('模拟调用登录接口...'); await new Promise(resolve => setTimeout(resolve, 500)); - console.log('模拟调用登录成功...'); } /** 停止所有轮询 */ diff --git a/Yi.Ai.Vue3/src/components/LoginDialog/index.vue b/Yi.Ai.Vue3/src/components/LoginDialog/index.vue index b1af9101..92099d8d 100644 --- a/Yi.Ai.Vue3/src/components/LoginDialog/index.vue +++ b/Yi.Ai.Vue3/src/components/LoginDialog/index.vue @@ -56,8 +56,6 @@ function onAfterLeave() { } function handleThirdPartyLogin() { - console.log('SSO_SEVER_URL', SSO_SEVER_URL); - console.log('import.meta.env', import.meta.env); const redirectUri = encodeURIComponent(`${window.location.origin}/chat`); const popup = window.open( `${SSO_SEVER_URL}/login?client_id=${SSO_CLIENT_ID}&redirect_uri=${redirectUri}`, diff --git a/Yi.Ai.Vue3/src/components/ModelSelect/index.vue b/Yi.Ai.Vue3/src/components/ModelSelect/index.vue index 1deb1ed3..3d368c48 100644 --- a/Yi.Ai.Vue3/src/components/ModelSelect/index.vue +++ b/Yi.Ai.Vue3/src/components/ModelSelect/index.vue @@ -100,7 +100,6 @@ function handleModelClick(item: GetSessionListVO) { }); } - console.log('handleClick--', item); modelStore.setCurrentModelInfo(item); popoverRef.value?.hide?.(); } diff --git a/Yi.Ai.Vue3/src/hooks/useWindowWidthObserver.ts b/Yi.Ai.Vue3/src/hooks/useWindowWidthObserver.ts index a211f7bf..a5c4bc52 100644 --- a/Yi.Ai.Vue3/src/hooks/useWindowWidthObserver.ts +++ b/Yi.Ai.Vue3/src/hooks/useWindowWidthObserver.ts @@ -34,11 +34,9 @@ export function useWindowWidthObserver( designStore.setCollapse(false); if (isAbove) { // 大于的时候执行关闭动画 (豆包是有的,第一版本暂未添加) - console.log('执行关闭动画'); } else { // 小于的时候执行打开动画 (豆包是有的,第一版本暂未添加) - console.log('小于的时候执行打开动画'); } break; case 'narrowExpandWideCollapse': diff --git a/Yi.Ai.Vue3/src/layouts/components/Header/components/Avatar.vue b/Yi.Ai.Vue3/src/layouts/components/Header/components/Avatar.vue index 0776701f..90cff3d6 100644 --- a/Yi.Ai.Vue3/src/layouts/components/Header/components/Avatar.vue +++ b/Yi.Ai.Vue3/src/layouts/components/Header/components/Avatar.vue @@ -5,6 +5,7 @@ import Popover from '@/components/Popover/index.vue'; import SvgIcon from '@/components/SvgIcon/index.vue'; import { useUserStore } from '@/stores'; import { useSessionStore } from '@/stores/modules/session'; +import { userProfilePicture } from '@/utils/user'; const router = useRouter(); @@ -82,14 +83,11 @@ function handleClick(item: any) { switch (item.key) { case '1': ElMessage.warning('暂未开放'); - console.log('点击了收藏夹'); break; case '2': ElMessage.warning('暂未开放'); - console.log('点击了设置'); break; case '5': - console.log('点击了用户中心'); openDialog(); break; case '4': @@ -207,13 +205,13 @@ function openVipGuide() { :popover-style="popoverStyle" >