Skip to content

Commit a6dd5a7

Browse files
author
pooya parsa
committed
fix: workaround for duplicate instance
1 parent b7f3b3e commit a6dd5a7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/app.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ export default {
202202
document.write(html)
203203
document.close()
204204
205+
// Destroy app
206+
window._nuxtLoadingScreen.$destroy()
207+
205208
// Clear console
206209
this.clearConsole()
207210
}

app/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import Vue from 'vue'
22
import App from './app.vue'
33

4-
window.app = new Vue(App)
4+
if (window._nuxtLoadingScreen) {
5+
location.reload(true) // Workaround
6+
} else {
7+
window._nuxtLoadingScreen = new Vue(App)
8+
}

0 commit comments

Comments
 (0)