|
@@ -16,10 +16,9 @@ const CONFIG = {
|
|
|
const Setting = () => {
|
|
|
const [searchParams] = useSearchParams()
|
|
|
useEffect(() => {
|
|
|
-
|
|
|
// 获取链接参数 code
|
|
|
const code = searchParams.get('code')
|
|
|
-
|
|
|
+ console.log(code)
|
|
|
if (code) {
|
|
|
// 获取用户信息
|
|
|
getPiaoQuanUserInfo(code)
|
|
@@ -30,8 +29,6 @@ const Setting = () => {
|
|
|
|
|
|
const getPiaoQuanUserInfo = async (code: string) => {
|
|
|
console.log(code)
|
|
|
- // 在url上添加code参数
|
|
|
- window.location.href = window.location.href + `?code=${code}`
|
|
|
}
|
|
|
|
|
|
const renderQrcode = () => {
|