fix
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
<span>{{ $props.text }}</span>
|
<span>{{ $props.text }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="g_id_signin" id="g_id_signin">
|
<div class="g_id_signin" id="g_id_signin">
|
||||||
<img src="@/assets/images/loginPage/gmailIcon.svg" alt="">
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -38,7 +37,9 @@
|
|||||||
// 使用谷歌登录的api
|
// 使用谷歌登录的api
|
||||||
const createGmailLogin = async ()=>{
|
const createGmailLogin = async ()=>{
|
||||||
var existingScript = document.querySelector(`script[src="${data.scriptSrc}"]`);
|
var existingScript = document.querySelector(`script[src="${data.scriptSrc}"]`);
|
||||||
|
if(!window.isAddGmail){
|
||||||
if(!existingScript){
|
if(!existingScript){
|
||||||
|
window.isAddGmail = true
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
const script = document.createElement("script");
|
const script = document.createElement("script");
|
||||||
script.src = data.scriptSrc
|
script.src = data.scriptSrc
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
logo_alignment:"center",
|
logo_alignment:"center",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
onBeforeUnmount(()=>{
|
onBeforeUnmount(()=>{
|
||||||
var existingScript = document.querySelector(`script[src="${data.scriptSrc}"]`);
|
var existingScript = document.querySelector(`script[src="${data.scriptSrc}"]`);
|
||||||
if(existingScript)existingScript.remove()
|
if(existingScript)existingScript.remove()
|
||||||
@@ -133,7 +135,7 @@
|
|||||||
.S9gUrf-YoZ4jf{
|
.S9gUrf-YoZ4jf{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
iframe{
|
:deep(iframe){
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
|
|||||||
@@ -1010,7 +1010,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
.thirdPartyLogin{
|
.thirdPartyLogin{
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
// justify-content: flex-start;
|
||||||
> div{
|
> div{
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user