feat:聊天新增ai

This commit is contained in:
橙子
2024-07-21 13:37:56 +08:00
parent a0478279df
commit d9e91bcbf5
18 changed files with 240 additions and 112 deletions

View File

@@ -2,10 +2,14 @@ export const getUrl = (fileId) => {
if (fileId == null || fileId == undefined) {
return "/acquiesce.png"
}
else {
return getEnvUrl(fileId)
if (fileId.startsWith(`${import.meta.env.VITE_APP_BASEAPI}`)) {
return fileId;
}
return getEnvUrl(fileId)
};
const getEnvUrl = (str) => {