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