警告 #207

Merged
lyc merged 1 commits from lyc-dev into main 2024-09-14 13:44:44 +08:00
2 changed files with 9 additions and 5 deletions
Showing only changes of commit ec9c673b5a - Show all commits

View File

@ -16,7 +16,7 @@ import { ref, onMounted, nextTick } from 'vue'
default: 50, // 100
},
})
const emit = defineEmits(['loaded'])
const emit = defineEmits(['loaded', 'onSuccess'])
const displayedText = ref('')

View File

@ -65,7 +65,7 @@
</template>
<script setup>
import { ref, onMounted } from 'vue'
import { ref, onMounted, watch } from 'vue'
import useUserStore from '@/store/modules/user'
import outLink from '@/utils/linkConfig'
import Answer from './container/text.vue'
@ -200,12 +200,16 @@ 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>