Skip to content

Commit e66598a

Browse files
author
Vue Play
committed
Stored by Vue Play
1 parent c2fbc56 commit e66598a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Login.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Transport to="body" v-show="authorizing">
2+
<Transport v-if="mounted" to="body" v-show="authorizing">
33
<div class="w-screen h-screen absolute left-0 top-0" style="z-index:100000;background-color:#cacfd970"
44
@click="authorizing = false">
55
<div class="shadow-xl rounded -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 fixed block m-auto max-w-sm w-screen bg-slate-100 border-box text-center py-12"
@@ -60,10 +60,12 @@ export default {
6060
inject: ["io", "user", "reAuthenticate"],
6161
data: () => ({
6262
authorizing: false,
63-
origin: "https://studio.vueplay.com"
63+
origin: "https://studio.vueplay.com",
64+
mounted: false
6465
}),
6566
mounted() {
6667
this.origin = location.origin.startsWith("http") ? location.origin : "https://studio.vueplay.com"
68+
this.mounted = true
6769
},
6870
methods: {
6971
login() {

0 commit comments

Comments
 (0)