|
@ -12,6 +12,24 @@ import { htmlToText } from 'html-to-text'; |
|
|
import { Howl, Howler } from 'howler'; |
|
|
import { Howl, Howler } from 'howler'; |
|
|
import KLine from './Echarts/KLine.vue'; |
|
|
import KLine from './Echarts/KLine.vue'; |
|
|
import * as echarts from 'echarts' |
|
|
import * as echarts from 'echarts' |
|
|
|
|
|
|
|
|
|
|
|
import AIgif1 from '@/assets/img/AIchat/AIgif1.gif' |
|
|
|
|
|
import AIgif2 from '@/assets/img/AIchat/AIgif2.gif' |
|
|
|
|
|
import AIgif3 from '@/assets/img/AIchat/AIgif3.gif' |
|
|
|
|
|
import AIgif4 from '@/assets/img/AIchat/AIgif4.gif' |
|
|
|
|
|
import AIgif5 from '@/assets/img/AIchat/AIgif5.gif' |
|
|
|
|
|
import AIgif6 from '@/assets/img/AIchat/AIgif6.gif' |
|
|
|
|
|
import AIgif7 from '@/assets/img/AIchat/AIgif7.gif' |
|
|
|
|
|
const gifList = [ |
|
|
|
|
|
AIgif1, |
|
|
|
|
|
AIgif2, |
|
|
|
|
|
AIgif3, |
|
|
|
|
|
AIgif4, |
|
|
|
|
|
AIgif5, |
|
|
|
|
|
AIgif6, |
|
|
|
|
|
AIgif7 |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
const chatStore = useChatStore() |
|
|
const chatStore = useChatStore() |
|
|
const audioStore = useAudioStore() |
|
|
const audioStore = useAudioStore() |
|
|
const dataStore = useDataStore() |
|
|
const dataStore = useDataStore() |
|
@ -444,7 +462,7 @@ watch( |
|
|
// 初始化随机GIF |
|
|
// 初始化随机GIF |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
const random = Math.floor(Math.random() * 6) + 1; |
|
|
const random = Math.floor(Math.random() * 6) + 1; |
|
|
currentGif.value = `src/assets/img/AIchat/AIgif${random}.gif`; |
|
|
|
|
|
|
|
|
currentGif.value = gifList[random]; |
|
|
|
|
|
|
|
|
getQuestionsList(); |
|
|
getQuestionsList(); |
|
|
}); |
|
|
}); |
|
|