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