🐛 fix gt call err

This commit is contained in:
目棃
2025-03-18 09:25:53 +08:00
parent 522add2441
commit e308e4789c
3 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,6 @@
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TeyvatGuide</title>
<script src="https://static.geetest.com/v4/gt4.js"></script>
</head>
<body>

View File

@@ -15,6 +15,7 @@
</transition>
</template>
<script setup lang="ts">
import "https://static.geetest.com/static/js/gt.0.4.9.js";
import { ref, useTemplateRef, watch } from "vue";
const show = ref<boolean>(false);

View File

@@ -1,7 +1,7 @@
/**
* @file types/BBS/Geetest.d.ts
* @description 米游社Geetest 类型定义文件
* @since Beta v0.7.1
* @since Beta v0.7.2
*/
declare namespace TGApp.BBS.Geetest {
@@ -72,7 +72,7 @@ declare namespace TGApp.BBS.Geetest {
/**
* @description Geetest 插件 captchaObj
* @since Beta v0.7.1
* @since Beta v0.7.2
* @interface GeetestCaptcha
* @property {Function} appendTo
* @property {Function} getValidate
@@ -83,7 +83,7 @@ declare namespace TGApp.BBS.Geetest {
*/
type GeetestCaptcha = {
appendTo: (selector: string) => void;
getValidate: () => validateResp;
getValidate: () => GeetestVerifyRes;
onSuccess: (callback: () => void) => void;
onClose: (callback: () => void) => void;
onReady: (callback: () => void) => void;