2023-11-23-1

This commit is contained in:
X1627315083
2023-11-23 11:15:10 +08:00
parent 4baf8f3e3e
commit 25c0a80bb4
8 changed files with 156 additions and 81 deletions

View File

@@ -43,12 +43,11 @@
</div>
</template>
<script lang="ts">
import { defineComponent, createVNode, ref,Ref} from "vue";
import { defineComponent, createVNode,computed, ref,Ref} from "vue";
import { UserOutlined, DownOutlined } from "@ant-design/icons-vue";
import { Https } from "@/tool/https";
import { getCookie } from "@/tool/cookie";
import axios from 'axios'
import { useStore } from "vuex";
import { message } from "ant-design-vue";
import { useI18n } from "vue-i18n";
export default defineComponent({
@@ -71,6 +70,8 @@ export default defineComponent({
let bloodBars:any = ref(0)
let {t} = useI18n()
let isTest = ref()
let store = useStore()
let workspace:any = ref({})
return {
robotTop,
robotInput,
@@ -84,6 +85,8 @@ export default defineComponent({
bloodBars,
t,
isTest,
store,
workspace
};
},
data() {
@@ -102,6 +105,9 @@ export default defineComponent({
this.record = JSON.parse(sessionStorage.getItem("record") as string)
}
this.getBloodBars()
this.workspace = computed(()=>{
return this.store?.state?.Workspace?.workspace
})
},
directives:{
@@ -186,6 +192,7 @@ export default defineComponent({
"user_id" : this.userInfo?.userId,
"session_id":sessionId,
"message" : this.chatCentent,
gender:this.workspace.sexEnum.name,
}
let interaction = {onDownloadProgress: (progressEvent:any) => {
this.clearTimer()
@@ -325,30 +332,6 @@ export default defineComponent({
overflow: hidden;
margin: 0 5%;
margin-bottom: 5%;
.delete_like_file_block{
display: none;
width: 3.2rem;
height: 3.2rem;
background: rgba(0,0,0,0.6);
border-radius: 0.4rem;
position: absolute;
top: 0rem;
right: 0rem;
text-align: center;
line-height: 3.2rem;
left: auto;
cursor: pointer;
i{
font-size: 1.6rem;
color: #fff;
&.fi-rr-heart{
}
&.fi-sr-heart{
color: red;
}
}
}
&:hover .delete_like_file_block{
display: block;
}