操作优化
This commit is contained in:
parent
953749867b
commit
b07ff2e2f1
|
|
@ -65,7 +65,7 @@
|
|||
height: 0;
|
||||
|
||||
.userVideoContentListItem {
|
||||
height: 13%;
|
||||
height: 24%;
|
||||
width: calc(100% / 3 - 8px);
|
||||
padding: 4px;
|
||||
|
||||
|
|
|
|||
|
|
@ -79,12 +79,6 @@ const User: React.FC = () => {
|
|||
}
|
||||
const fileUpLoad = async (data: { url: string, content: string, fileName: string }): Promise<void> => {
|
||||
const setting = await JSON.parse(storage.getItem('setting') as string)
|
||||
if (setting.isShareSavePath) {
|
||||
window.electron.selectFilePath({
|
||||
fileName: data.fileName,
|
||||
filePath: data.url
|
||||
})
|
||||
} else {
|
||||
try {
|
||||
const response = await fetch(data.url);
|
||||
const arrayBuffer = await response.arrayBuffer();
|
||||
|
|
@ -118,7 +112,6 @@ const User: React.FC = () => {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Reference in New Issue