feat: add file icon and add message popover content (#77)

* feat: add message popover content

* feat: add file icon
This commit is contained in:
balibabu
2024-02-27 19:05:50 +08:00
committed by GitHub
parent 1567e881de
commit eb517f3106
52 changed files with 667 additions and 45 deletions

View File

@@ -0,0 +1,3 @@
export const scrollToBottom = (element: HTMLElement) => {
element.scrollTo(0, element.scrollHeight);
};

View File

@@ -25,3 +25,6 @@ export default {
getWidth,
rsaPsw,
};
export const getFileExtension = (filename: string) =>
filename.slice(filename.lastIndexOf('.') + 1).toLowerCase();

View File

@@ -107,7 +107,6 @@ request.interceptors.request.use((url: string, options: any) => {
* */
request.interceptors.response.use(async (response: any, request) => {
console.log(response, request);
const data: ResponseType = await response.clone().json();
// response 拦截