mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-06 20:10:46 +08:00
Open Google auth in new window
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user