fix: 洞察报告,词云原文,默认显示;

This commit is contained in:
钱冠学
2024-09-27 22:04:35 +08:00
parent b3bd6294b0
commit 384889b454

View File

@@ -1,5 +1,5 @@
<script setup>
import { computed, defineProps, onMounted, ref } from 'vue'
import { computed, defineProps, ref, watch } from 'vue'
import { message } from 'ant-design-vue'
import { AlignRightOutlined, CloudOutlined, DownloadOutlined } from '@ant-design/icons-vue'
import moment from 'moment'
@@ -52,7 +52,11 @@ const imageAreaWrapper = ref(null)
const chartShown = ref(true)
const activeRow = ref(props.data.wordCloud?.[0])
watch(() => props.data.wordCloud, () => {
if (!activeRow.value) {
activeRow.value = props.data.wordCloud?.[0]
}
}, { deep: true })
const wordCloudColumns = ref([
{