2023-10-30-语言适配 en
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<div class="robot_bottom">
|
||||
<div class="robot_input" v-fade="robotInput,'flex'">
|
||||
<input
|
||||
placeholder="write a message~"
|
||||
:placeholder="$t('RobotAssist.inputContent1')"
|
||||
v-model="chatCentent"
|
||||
@keydown.enter="roborSend()"
|
||||
@input="robotmax"
|
||||
@@ -49,6 +49,7 @@ import { getCookie } from "@/tool/cookie";
|
||||
import axios from 'axios'
|
||||
|
||||
import { message } from "ant-design-vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
export default defineComponent({
|
||||
components: {
|
||||
DownOutlined,
|
||||
@@ -67,6 +68,7 @@ export default defineComponent({
|
||||
])
|
||||
const userInfo:any = {}
|
||||
let bloodBars:any = ref(0)
|
||||
let {t} = useI18n()
|
||||
return {
|
||||
robotTop,
|
||||
robotInput,
|
||||
@@ -78,6 +80,7 @@ export default defineComponent({
|
||||
timeInput,
|
||||
userInfo,
|
||||
bloodBars,
|
||||
t,
|
||||
};
|
||||
},
|
||||
data() {
|
||||
@@ -154,7 +157,7 @@ export default defineComponent({
|
||||
roborSend (){
|
||||
this.clearTimer()
|
||||
if(!this.chatCentent){
|
||||
message.warning("Please enter content");
|
||||
message.warning(this.t('RobotAssist.jsContent1'));
|
||||
return
|
||||
}
|
||||
this.record.push({
|
||||
|
||||
Reference in New Issue
Block a user