This commit is contained in:
Tao Chen
2024-10-31 09:14:32 +08:00
parent c165f54ce8
commit 65eb3e73ea
5 changed files with 11 additions and 5 deletions

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

+11 -5
View File
@@ -85,12 +85,18 @@ const handleOIDCLogin = (provider) => {
userStore.oidc(provider, platform, browser)
};
import googleImage from '@/assets/google.png';
import githubImage from '@/assets/github.png';
import oidcImage from '@/assets/oidc.png';
import webauthImage from '@/assets/webauth.png';
import defaultImage from '@/assets/oidc.png';
const providerImageMap = {
google: '/google.png',
github: '/github.png',
oidc: '/oidc.png',
webauth: '/webauth.png',
default: '/default.png',
google: googleImage,
github: githubImage,
oidc: oidcImage,
webauth: webauthImage,
default: defaultImage,
};
const getProviderImage = (provider) => {