diff --git a/index.html b/index.html index db1c6ca..f757d28 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,7 @@ window.location.href = '/ie.html'; + diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 5cc45d1..a8c9893 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -3,6 +3,23 @@ import { LanguageEnum } from '@/enums/LanguageEnum'; import { NavTypeEnum } from '@/enums/NavTypeEnum'; declare global { + interface Window { + /** + * 天艾验证码初始化方法 + * @param assetPath 静态资源目录,public下tac文件夹填 "/tac" + * @param config 验证码配置项 + */ + initTAC: ( + assetPath: string, + captchaConfig: { + requestCaptchaDataUrl: string; + validCaptchaUrl: string; + bindEl: string; + validSuccess: (res, c, t) => void + } + , style: { logoUrl: null }) => Promise<{ init: () => void; destroyWindow: () => void }>; + } + /** vue Instance */ type ComponentInternalInstance = ComponentInstance; diff --git a/src/views/index.vue b/src/views/index.vue index 7934314..a8c1e39 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,111 +1,44 @@