Browse Source

Merge branch 'master' into hxl

hxl
hongxilin 3 months ago
parent
commit
f8071501c2
  1. 20
      src/views/AIchat.vue

20
src/views/AIchat.vue

@ -12,6 +12,24 @@ import { htmlToText } from 'html-to-text';
import { Howl, Howler } from 'howler';
import KLine from './Echarts/KLine.vue';
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 audioStore = useAudioStore()
const dataStore = useDataStore()
@ -444,7 +462,7 @@ watch(
// GIF
onMounted(() => {
const random = Math.floor(Math.random() * 6) + 1;
currentGif.value = `src/assets/img/AIchat/AIgif${random}.gif`;
currentGif.value = gifList[random];
getQuestionsList();
});

Loading…
Cancel
Save