This commit is contained in:
parent
051481b631
commit
5a8678a3a1
|
|
@ -79,7 +79,7 @@ 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) {
|
if (setting.isShareSavePath) {
|
||||||
window.electron.selectFilePath({
|
window.electron.selectFilePath({
|
||||||
fileName: data.fileName,
|
fileName: data.fileName,
|
||||||
filePath: data.url
|
filePath: data.url
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue