feat: media API (video/bbox/thumbnail), UUID unification, dot matrix text, portal fixes, API dictionary V1.3

This commit is contained in:
Warren
2026-05-06 13:34:49 +08:00
parent e75c4d6f07
commit 74b6182eba
197 changed files with 17511 additions and 8759 deletions
+3 -6
View File
@@ -83,6 +83,7 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { useRoute } from 'vue-router'
import { httpFetch, getCurrentConfig } from '@/api/client'
const route = useRoute()
const identityId = ref('')
@@ -96,12 +97,8 @@ const loadDetail = async () => {
loading.value = true
try {
const config = JSON.parse(localStorage.getItem('portal_config') || '{}')
const baseUrl = config.api_base_url || 'http://127.0.0.1:3003'
const resp = await fetch(`${baseUrl}/api/v1/identities/${identityId.value}`, {
headers: { 'X-API-Key': config.api_key || '' }
})
const result = await resp.json()
const config = getCurrentConfig()
const result = await httpFetch<any>(`${config.api_base_url}/api/v1/identity/${identityId.value}`)
detail.value = result
profile.value = result.profile || {}
videos.value = result.videos || []