mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
no message
This commit is contained in:
parent
f8b69df955
commit
e6983e858d
@ -168,7 +168,7 @@ services:
|
|||||||
|
|
||||||
ai:
|
ai:
|
||||||
container_name: "dootask-ai-${APP_ID}"
|
container_name: "dootask-ai-${APP_ID}"
|
||||||
image: "kuaifan/dootask-ai:0.3.1"
|
image: "kuaifan/dootask-ai:0.3.2"
|
||||||
environment:
|
environment:
|
||||||
REDIS_HOST: "${REDIS_HOST}"
|
REDIS_HOST: "${REDIS_HOST}"
|
||||||
REDIS_PORT: "${REDIS_PORT}"
|
REDIS_PORT: "${REDIS_PORT}"
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li v-for="(item, index) in listData" :key="index" @click="onOpen(item)">
|
<li v-for="(item, index) in listData" :key="index" @click="onOpen(item)">
|
||||||
<div class="history-title">
|
<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>
|
||||||
<div class="history-time" :title="item.created_at">
|
<div class="history-time" :title="item.created_at">
|
||||||
{{$A.timeFormat(item.created_at)}}
|
{{$A.timeFormat(item.created_at)}}
|
||||||
@ -36,7 +36,7 @@ export default {
|
|||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
openIng: false,
|
openIng: 0,
|
||||||
|
|
||||||
listData: [],
|
listData: [],
|
||||||
listLoad: 0,
|
listLoad: 0,
|
||||||
@ -103,10 +103,10 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
if (this.openIng) {
|
if (this.openIng > 0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.openIng = true
|
this.openIng = item.id
|
||||||
//
|
//
|
||||||
this.$store.dispatch("call", {
|
this.$store.dispatch("call", {
|
||||||
url: "dialog/session/open",
|
url: "dialog/session/open",
|
||||||
@ -118,7 +118,7 @@ export default {
|
|||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg)
|
$A.modalError(msg)
|
||||||
}).finally(_ => {
|
}).finally(_ => {
|
||||||
this.openIng = false;
|
this.openIng = 0;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -62,6 +62,15 @@
|
|||||||
float: left;
|
float: left;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
|
||||||
|
.history-load {
|
||||||
|
display: inline-block;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
vertical-align: top;
|
||||||
|
margin-top: 2px;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
> em {
|
> em {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user