Compare commits
No commits in common. "01718f573b67035e1d72e63e3abf1316ace2f2ef" and "a92176174a9c21a55c58c75fd4997dcf40996f8e" have entirely different histories.
01718f573b
...
a92176174a
|
@ -16,7 +16,7 @@ import { ref, onMounted, nextTick } from 'vue'
|
|||
default: 50, // 默认每字符间隔100毫秒
|
||||
},
|
||||
})
|
||||
const emit = defineEmits(['loaded', 'onSuccess'])
|
||||
const emit = defineEmits(['loaded'])
|
||||
|
||||
const displayedText = ref('')
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted, watch } from 'vue'
|
||||
import { ref, onMounted } from 'vue'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
import outLink from '@/utils/linkConfig'
|
||||
import Answer from './container/text.vue'
|
||||
|
@ -200,16 +200,12 @@ const closeChart = () =>{
|
|||
isOpen.value = false
|
||||
}
|
||||
|
||||
watch(isOpen, (newVal)=>{
|
||||
if(newVal){
|
||||
if (!conversation_id) {
|
||||
getChartId();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
conversation_id = localStorage.getItem("conversation_id");
|
||||
if (!conversation_id) {
|
||||
getChartId();
|
||||
}
|
||||
})
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue