fix: user settings oauth add redirect path

This commit is contained in:
shuai 2023-03-10 17:58:49 +08:00
parent ecf24b5a96
commit 89ed70f5a8
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,8 @@ import { Modal } from '@/components';
import { useOauthConnectorInfoByUser, userOauthUnbind } from '@/services';
import { useToast } from '@/hooks';
import { base64ToSvg } from '@/utils';
import Storage from '@/utils/storage';
import { REDIRECT_PATH_STORAGE_KEY } from '@/common/constants';
const Index = () => {
const { data, mutate } = useOauthConnectorInfoByUser();
@ -21,6 +23,7 @@ const Index = () => {
const deleteLogins = (e, item) => {
if (!item.binding) {
Storage.set(REDIRECT_PATH_STORAGE_KEY, window.location.pathname);
return;
}
e.preventDefault();