👽️ 调整更新日志链接

This commit is contained in:
目棃
2024-08-09 09:23:16 +08:00
parent 6a39aa127b
commit 1a4d175e3d
4 changed files with 10 additions and 6 deletions

View File

@@ -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>

View File

@@ -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);

View File

@@ -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;
}
/**

View File

@@ -4,7 +4,7 @@
* @since Beta v0.4.3
*/
import TGConstant from "../constant/TGConstant";
import TGConstant from "../constant/TGConstant.js";
/**
* @description 转义正则表达式