Fix drawai reveal (#152)
This commit is contained in:
1 parent
d6c4465f2d
commit
ba0101d6ce
3 files changed
+24
-10
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "fix drawai reveal",
|
||||||
|
"packageName": "@acedatacloud/nexior",
|
||||||
|
"email": "1348977728@qq.com",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
||||||
@@ -14,15 +14,7 @@
|
|||||||
<p v-if="modelValue?.request?.template" class="prompt mt-2">
|
<p v-if="modelValue?.request?.template" class="prompt mt-2">
|
||||||
{{ modelValue?.request?.template }}
|
{{ modelValue?.request?.template }}
|
||||||
<span v-if="!modelValue?.response"> - ({{ $t('headshots.status.pending') }}) </span>
|
<span v-if="!modelValue?.response"> - ({{ $t('headshots.status.pending') }}) </span>
|
||||||
<!-- <span
|
<span v-if="modelValue?.response?.status === 'unknown'"> - ({{ $t('headshots.status.processing') }}) </span>
|
||||||
v-if="
|
|
||||||
modelValue?.response?.data?.state === 'processing' ||
|
|
||||||
modelValue?.response?.data?.state === 'pending' ||
|
|
||||||
modelValue?.response?.data?.state === 'completed'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
- ({{ $t('headshots.status.processing') }})
|
|
||||||
</span> -->
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<!-- Display success message -->
|
<!-- Display success message -->
|
||||||
@@ -81,6 +73,20 @@
|
|||||||
</p>
|
</p>
|
||||||
</el-alert>
|
</el-alert>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="modelValue?.response?.status === 'unknown'" :class="{ content: true }">
|
||||||
|
<el-alert :closable="false" class="info">
|
||||||
|
<template #template>
|
||||||
|
<font-awesome-icon icon="fa-solid fa-exclamation-triangle" class="mr-1" />
|
||||||
|
{{ $t('headshots.name.failure') }}
|
||||||
|
</template>
|
||||||
|
<p class="description">
|
||||||
|
<font-awesome-icon icon="fa-solid fa-magic" class="mr-1" />
|
||||||
|
{{ $t('headshots.name.taskId') }}:
|
||||||
|
{{ modelValue?.id }}
|
||||||
|
<copy-to-clipboard :content="modelValue?.id!" class="btn-copy" />
|
||||||
|
</p>
|
||||||
|
</el-alert>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -163,7 +169,7 @@ $left-width: 70px;
|
|||||||
.left {
|
.left {
|
||||||
width: $left-width;
|
width: $left-width;
|
||||||
.avatar {
|
.avatar {
|
||||||
background-color: rgb(0, 0, 0);
|
background-color: rgb(64, 119, 188);
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ export interface IHeadshotsPicture {
|
|||||||
|
|
||||||
export interface IHeadshotsGenerateResponse {
|
export interface IHeadshotsGenerateResponse {
|
||||||
success?: boolean;
|
success?: boolean;
|
||||||
|
status?: string;
|
||||||
task_id: string;
|
task_id: string;
|
||||||
trace_id: string;
|
trace_id: string;
|
||||||
error?: {
|
error?: {
|
||||||
|
|||||||
Reference in new issue
Block a user