fix: 洞察报告,词云原文,默认显示;
This commit is contained in:
@@ -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([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user