2023-11-20-1
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
<div class="robot_text">
|
||||
<span>
|
||||
{{item.str}}
|
||||
<a v-if="item.src" :href="item.src" target="_blank"><i class="fi fi-br-link-alt"></i></a>
|
||||
</span>
|
||||
<div class="robot_img" :class="[item.img ?'img':'']">
|
||||
<div class="robot_img_item" v-for="imgItem,imgIndex in item.img">
|
||||
@@ -69,6 +70,7 @@ export default defineComponent({
|
||||
const userInfo:any = {}
|
||||
let bloodBars:any = ref(0)
|
||||
let {t} = useI18n()
|
||||
let isTest = ref()
|
||||
return {
|
||||
robotTop,
|
||||
robotInput,
|
||||
@@ -81,6 +83,7 @@ export default defineComponent({
|
||||
userInfo,
|
||||
bloodBars,
|
||||
t,
|
||||
isTest,
|
||||
};
|
||||
},
|
||||
data() {
|
||||
@@ -90,6 +93,8 @@ export default defineComponent({
|
||||
mounted() {
|
||||
this.textScroll()
|
||||
let userInfo:any = getCookie("userInfo")
|
||||
let isTest:any = getCookie('isTest')
|
||||
this.isTest =JSON.parse(isTest)|| ''
|
||||
this.userInfo = JSON.parse(userInfo);
|
||||
if (sessionStorage.getItem("record") == null) {
|
||||
this.record = []
|
||||
@@ -196,6 +201,20 @@ export default defineComponent({
|
||||
// }
|
||||
},
|
||||
}
|
||||
if(this.isTest){//试用用户禁止使用
|
||||
// message.warning(
|
||||
// this.t('isTest.available')
|
||||
// );
|
||||
this.record.push({
|
||||
state:1,
|
||||
str:this.t('isTest.src'),
|
||||
src:'https://code-create.com.hk/aida/'
|
||||
})
|
||||
this.createTimer()
|
||||
this.textScroll()
|
||||
this.chatCentent = ""
|
||||
return
|
||||
}
|
||||
Https.axiosPost(Https.httpUrls.chatStreamTest, data).then(
|
||||
// Https.axiosPost(Https.httpUrls.pythonChatStream, data,interaction).then(
|
||||
(rv) => {
|
||||
|
||||
Reference in New Issue
Block a user