no message

This commit is contained in:
kuaifan 2025-02-12 21:33:10 +08:00
parent f8b69df955
commit e6983e858d
3 changed files with 15 additions and 6 deletions

View File

@ -168,7 +168,7 @@ services:
ai:
container_name: "dootask-ai-${APP_ID}"
image: "kuaifan/dootask-ai:0.3.1"
image: "kuaifan/dootask-ai:0.3.2"
environment:
REDIS_HOST: "${REDIS_HOST}"
REDIS_PORT: "${REDIS_PORT}"

View File

@ -8,7 +8,7 @@
<ul>
<li v-for="(item, index) in listData" :key="index" @click="onOpen(item)">
<div class="history-title">
<em v-if="item.is_open">{{$L('当前')}}</em>{{item.title || $L('新会话')}}
<div v-if="openIng == item.id" class="history-load"><Loading/></div><em v-if="item.is_open">{{$L('当前')}}</em>{{item.title || $L('新会话')}}
</div>
<div class="history-time" :title="item.created_at">
{{$A.timeFormat(item.created_at)}}
@ -36,7 +36,7 @@ export default {
data() {
return {
openIng: false,
openIng: 0,
listData: [],
listLoad: 0,
@ -103,10 +103,10 @@ export default {
return
}
//
if (this.openIng) {
if (this.openIng > 0) {
return
}
this.openIng = true
this.openIng = item.id
//
this.$store.dispatch("call", {
url: "dialog/session/open",
@ -118,7 +118,7 @@ export default {
}).catch(({msg}) => {
$A.modalError(msg)
}).finally(_ => {
this.openIng = false;
this.openIng = 0;
});
}
}

View File

@ -62,6 +62,15 @@
float: left;
line-height: 20px;
.history-load {
display: inline-block;
width: 16px;
height: 16px;
vertical-align: top;
margin-top: 2px;
margin-right: 6px;
}
> em {
font-style: normal;
font-size: 12px;