Skip to content
Snippets Groups Projects
Commit 1a698111 authored by syuilo's avatar syuilo
Browse files

refactor(client): remove invalid computed

parent 9f7c9b12
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ const variable = computed(() => { ...@@ -51,7 +51,7 @@ const variable = computed(() => {
} }
}); });
const loaded = computed(() => !!window[variable.value]); const loaded = !!window[variable.value];
const src = computed(() => { const src = computed(() => {
switch (props.provider) { switch (props.provider) {
...@@ -62,7 +62,7 @@ const src = computed(() => { ...@@ -62,7 +62,7 @@ const src = computed(() => {
const captcha = computed<Captcha>(() => window[variable.value] || {} as unknown as Captcha); const captcha = computed<Captcha>(() => window[variable.value] || {} as unknown as Captcha);
if (loaded.value) { if (loaded) {
available.value = true; available.value = true;
} else { } else {
(document.getElementById(props.provider) || document.head.appendChild(Object.assign(document.createElement('script'), { (document.getElementById(props.provider) || document.head.appendChild(Object.assign(document.createElement('script'), {
...@@ -74,7 +74,7 @@ if (loaded.value) { ...@@ -74,7 +74,7 @@ if (loaded.value) {
} }
function reset() { function reset() {
if (captcha.value?.reset) captcha.value.reset(); if (captcha.value.reset) captcha.value.reset();
} }
function requestRender() { function requestRender() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment