feat: media API (video/bbox/thumbnail), UUID unification, dot matrix text, portal fixes, API dictionary V1.3
This commit is contained in:
@@ -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 || []
|
||||
|
||||
Reference in New Issue
Block a user