From 365bcb86ddae572b7985e9d3d9ec7b07744d4d30 Mon Sep 17 00:00:00 2001 From: tim Date: Mon, 4 Aug 2025 01:08:33 +0800 Subject: [PATCH] feat: fix with google login --- frontend/src/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/main.js b/frontend/src/main.js index a3c9a53cc..e2461d2ac 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -8,7 +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 } from './utils/auth' +import { checkToken, clearToken, isLogin } from './utils/auth' +import { loginWithGoogle } from './utils/google' import { initTheme } from './utils/theme' import { clearVditorStorage } from './utils/clearVditorStorage' @@ -50,6 +51,7 @@ checkToken().then(valid => { clearToken() } + // 引导用户优先采用Google Login登录 if (!isLogin()) { setTimeout(() => { loginWithGoogle()