mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-06 08:32:51 +08:00
🐛 fix gt call err
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
6
src/types/BBS/Geetest.d.ts
vendored
6
src/types/BBS/Geetest.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user