操作优化

This commit is contained in:
yj 2024-09-09 13:38:47 +08:00
parent 953749867b
commit b07ff2e2f1
2 changed files with 29 additions and 36 deletions

View File

@ -65,7 +65,7 @@
height: 0; height: 0;
.userVideoContentListItem { .userVideoContentListItem {
height: 13%; height: 24%;
width: calc(100% / 3 - 8px); width: calc(100% / 3 - 8px);
padding: 4px; padding: 4px;

View File

@ -79,12 +79,6 @@ const User: React.FC = () => {
} }
const fileUpLoad = async (data: { url: string, content: string, fileName: string }): Promise<void> => { const fileUpLoad = async (data: { url: string, content: string, fileName: string }): Promise<void> => {
const setting = await JSON.parse(storage.getItem('setting') as string) const setting = await JSON.parse(storage.getItem('setting') as string)
if (setting.isShareSavePath) {
window.electron.selectFilePath({
fileName: data.fileName,
filePath: data.url
})
} else {
try { try {
const response = await fetch(data.url); const response = await fetch(data.url);
const arrayBuffer = await response.arrayBuffer(); const arrayBuffer = await response.arrayBuffer();
@ -118,7 +112,6 @@ const User: React.FC = () => {
} }
} }
} }
}
return ( return (
<> <>