修复实名认证后的状态更新 & 使用sse方式解决支付轮询两次完成问题 & 修复账户总览图标展示 & 白名单新增获取当前用户IP地址功能 & 购买套餐添加白名单链接
This commit is contained in:
@@ -75,8 +75,11 @@ export default function Extract(props: ExtractProps) {
|
||||
<Alert variant="warn" className="flex items-center">
|
||||
<CircleAlert/>
|
||||
<AlertTitle className="flex">提取IP前需要将本机IP添加到白名单后才可使用</AlertTitle>
|
||||
<Link href="/admin/whitelist">
|
||||
<Button ><Plus/>添加白名单</Button>
|
||||
<Link
|
||||
href="/admin/whitelist"
|
||||
className="text-blue-600 hover:text-blue-800 hover:underline font-medium ml-2"
|
||||
>
|
||||
去添加 →
|
||||
</Link>
|
||||
</Alert>
|
||||
|
||||
@@ -526,12 +529,16 @@ function ApplyLink() {
|
||||
const handler = form.handleSubmit(
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
async (values: z.infer<typeof schema>) => {
|
||||
console.log(values, 'values')
|
||||
|
||||
const params = link(values)
|
||||
console.log(params, 'paramsparams')
|
||||
|
||||
switch (type.current) {
|
||||
case 'copy':
|
||||
const url = new URL(window.location.href).origin
|
||||
const text = `${url}${params}`
|
||||
console.log(text, 'text')
|
||||
|
||||
// 使用 clipboard API 复制链接
|
||||
let copied = false
|
||||
|
||||
Reference in New Issue
Block a user