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