feat: 聊天室结合用户领域体系

This commit is contained in:
橙子
2024-04-09 23:59:26 +08:00
parent 944bd8c956
commit 8546c59f52
2 changed files with 51 additions and 18 deletions

View File

@@ -0,0 +1,15 @@
export const getUrl = (fileId) => {
if (fileId == null || fileId == undefined) {
return "@/assets/chat_images/friendicon.jpg"
}
else {
return getEnvUrl(fileId)
}
};
const getEnvUrl = (str) => {
return `${import.meta.env.VITE_APP_BASEAPI}/file/${str}`;
};