Open Google auth in new window

This commit is contained in:
Tim
2025-08-04 00:58:45 +08:00
parent 354cc7cd17
commit 1b206af28c
6 changed files with 73 additions and 52 deletions

View File

@@ -8,9 +8,8 @@ import './assets/toast.css'
// Use Sugar theme from vue-toast-notification for better toast styling.
// If you prefer Bootstrap style, replace with theme-bootstrap.css instead.
import { useToast } from 'vue-toastification'
import { checkToken, clearToken, isLogin } from './utils/auth'
import { checkToken, clearToken } from './utils/auth'
import { initTheme } from './utils/theme'
import { loginWithGoogle } from './utils/google'
import { clearVditorStorage } from './utils/clearVditorStorage'
// Configurable API domain and port
@@ -50,10 +49,4 @@ checkToken().then(valid => {
if (!valid) {
clearToken()
}
if (!isLogin()) {
setTimeout(() => {
loginWithGoogle()
}, 3000)
}
})