@@ -9,7 +9,7 @@ import {exportLayout} from "../layout/util";
99import { exitSiYuan } from "../dialog/processSystem" ;
1010import { showMessage } from "../dialog/message" ;
1111import { isBrowser } from "../util/functions" ;
12- import { isMac , openByMobile } from "../protyle/util/compatibility" ;
12+ import { isMac , saveExportFile } from "../protyle/util/compatibility" ;
1313
1414export const appConfig = {
1515 element : undefined as Element ,
@@ -154,7 +154,7 @@ export const appConfig = {
154154 } ) ;
155155 root . querySelector ( "#exportLog" ) ?. addEventListener ( "click" , ( ) => {
156156 fetchPost ( "/api/system/exportLog" , { } , ( response ) => {
157- openByMobile ( response . data . zip ) ;
157+ saveExportFile ( response . data . zip ) ;
158158 } ) ;
159159 } ) ;
160160 /// #if !BROWSER
@@ -216,7 +216,7 @@ export const appConfig = {
216216 root . querySelector ( "#exportData" ) ?. addEventListener ( "click" , async ( ) => {
217217 /// #if BROWSER
218218 fetchPost ( "/api/export/exportData" , { } , response => {
219- openByMobile ( response . data . zip ) ;
219+ saveExportFile ( response . data . zip ) ;
220220 } ) ;
221221 /// #else
222222 const result = await ipcRenderer . invoke ( Constants . SIYUAN_GET , {
@@ -237,7 +237,7 @@ export const appConfig = {
237237 } ) ;
238238 root . querySelector ( "#exportConf" ) ?. addEventListener ( "click" , async ( ) => {
239239 fetchPost ( "/api/system/exportConf" , { } , response => {
240- openByMobile ( response . data . zip ) ;
240+ saveExportFile ( response . data . zip ) ;
241241 } ) ;
242242 } ) ;
243243 } ,
0 commit comments