Sfoglia il codice sorgente

replace window location href to window location reload

yuto-oweseek 4 anni fa
parent
commit
e8c56d47cb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/app/src/client/services/PageContainer.js

+ 1 - 1
packages/app/src/client/services/PageContainer.js

@@ -684,7 +684,7 @@ export default class PageContainer extends Container {
 
   async resolveConflictAndReload(pageId, revisionId, markdown, optionsToSave) {
     await this.resolveConflict(pageId, revisionId, markdown, optionsToSave);
-    window.location.href = this.state.path;
+    window.location.reload();
   }
 
 }