mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
👽️ 调整更新日志链接
This commit is contained in:
@@ -52,7 +52,7 @@ function toStore() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toSite() {
|
function toSite() {
|
||||||
window.open("https://app.btmuli.ink/docs/Changelogs.html");
|
window.open("https://app.btmuli.ink/docs/TeyvatGuide/changelogs.html");
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="css" scoped>
|
<style lang="css" scoped>
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ watch(show, () => {
|
|||||||
async function displayBox(
|
async function displayBox(
|
||||||
props: TGApp.Plugins.Mys.Geetest.reqResp,
|
props: TGApp.Plugins.Mys.Geetest.reqResp,
|
||||||
): Promise<TGApp.Plugins.Mys.Geetest.validateResp | false> {
|
): Promise<TGApp.Plugins.Mys.Geetest.validateResp | false> {
|
||||||
show.value = true;
|
|
||||||
return await new Promise<TGApp.Plugins.Mys.Geetest.validateResp>((resolve) => {
|
return await new Promise<TGApp.Plugins.Mys.Geetest.validateResp>((resolve) => {
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
initGeetest(
|
initGeetest(
|
||||||
@@ -58,6 +57,9 @@ async function displayBox(
|
|||||||
(captchaObj: TGApp.Plugins.Mys.Geetest.GeetestCaptcha) => {
|
(captchaObj: TGApp.Plugins.Mys.Geetest.GeetestCaptcha) => {
|
||||||
geetestRef.value.innerHTML = "";
|
geetestRef.value.innerHTML = "";
|
||||||
captchaObj.appendTo("#geetest");
|
captchaObj.appendTo("#geetest");
|
||||||
|
captchaObj.onReady(() => {
|
||||||
|
show.value = true;
|
||||||
|
});
|
||||||
captchaObj.onSuccess(async () => {
|
captchaObj.onSuccess(async () => {
|
||||||
const validate = captchaObj.getValidate();
|
const validate = captchaObj.getValidate();
|
||||||
resolve(validate);
|
resolve(validate);
|
||||||
|
|||||||
8
src/plugins/Mys/types/Geetest.d.ts
vendored
8
src/plugins/Mys/types/Geetest.d.ts
vendored
@@ -1,12 +1,12 @@
|
|||||||
/**
|
/**
|
||||||
* @file plugins/Mys/types/Geetest.d.ts
|
* @file plugins/Mys/types/Geetest.d.ts
|
||||||
* @description Mys 插件 Geetest 类型定义文件
|
* @description Mys 插件 Geetest 类型定义文件
|
||||||
* @since Beta v0.5.1
|
* @since Beta v0.5.2
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description Mys 插件 Geetest 类型
|
* @description Mys 插件 Geetest 类型
|
||||||
* @since Beta v0.5.1
|
* @since Beta v0.5.2
|
||||||
* @namespace TGApp.Plugins.Mys.Geetest
|
* @namespace TGApp.Plugins.Mys.Geetest
|
||||||
* @memberof TGApp.Plugins.Mys
|
* @memberof TGApp.Plugins.Mys
|
||||||
*/
|
*/
|
||||||
@@ -66,12 +66,13 @@ declare namespace TGApp.Plugins.Mys.Geetest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @description Geetest 插件 captchaObj
|
* @description Geetest 插件 captchaObj
|
||||||
* @since Beta v0.5.1
|
* @since Beta v0.5.2
|
||||||
* @interface GeetestCaptcha
|
* @interface GeetestCaptcha
|
||||||
* @property {Function} appendTo
|
* @property {Function} appendTo
|
||||||
* @property {Function} getValidate
|
* @property {Function} getValidate
|
||||||
* @property {Function} onSuccess
|
* @property {Function} onSuccess
|
||||||
* @property {Function} onClose
|
* @property {Function} onClose
|
||||||
|
* @property {Function} onReady
|
||||||
* @return GeetestCaptcha
|
* @return GeetestCaptcha
|
||||||
*/
|
*/
|
||||||
interface GeetestCaptcha {
|
interface GeetestCaptcha {
|
||||||
@@ -79,6 +80,7 @@ declare namespace TGApp.Plugins.Mys.Geetest {
|
|||||||
getValidate: () => validateResp;
|
getValidate: () => validateResp;
|
||||||
onSuccess: (callback: () => void) => void;
|
onSuccess: (callback: () => void) => void;
|
||||||
onClose: (callback: () => void) => void;
|
onClose: (callback: () => void) => void;
|
||||||
|
onReady: (callback: () => void) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* @since Beta v0.4.3
|
* @since Beta v0.4.3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import TGConstant from "../constant/TGConstant";
|
import TGConstant from "../constant/TGConstant.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description 转义正则表达式
|
* @description 转义正则表达式
|
||||||
|
|||||||
Reference in New Issue
Block a user