From 8d2b4ed48b93ee6fda3bad9e7a22a4480e943f02 Mon Sep 17 00:00:00 2001 From: LittleChest Date: Fri, 3 Oct 2025 17:02:41 +0800 Subject: [PATCH] app: Adapt api changes --- src/App.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/App.vue b/src/App.vue index aa4ae28..dfb31d5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -32,9 +32,10 @@ -
-
调试信息
-
{{ debug }}
+
+
+
{{ item }}
+
@@ -42,8 +43,8 @@
性别:{{ genderDisplay }}
- - + @@ -63,7 +64,6 @@ const photoBlob = ref(null) const loading = ref(false) const debug = ref('') const errorMsg = ref('') -const legacyModel = ref(false) const saveConsent = ref(true) const age = ref(null) const gender = ref(null) @@ -159,7 +159,6 @@ async function uploadPhoto() { let url = 'https://api.littlew.top/age' const params = [] if (saveConsent.value) params.push('save=true') - if (legacyModel.value) params.push('legacy=true') if (params.length) url += '?' + params.join('&') const resp = await fetch(url, { method: 'POST', body: form }, { credentials: 'include' }) const text = await resp.text()