update src/packages/components/Charts/Mores/Process/index.vue.

之前那样UI值不会随着预览更新更新到UI上,接口数变了,UI不变。
前端小白不懂之前为啥要那么写,简单修改一下

Signed-off-by: 初级开发人员 <qinweiw@foxmail.com>
This commit is contained in:
初级开发人员 2024-12-17 08:35:04 +00:00 committed by Gitee
parent 62d63c3f65
commit 4d62ea8b76
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -49,16 +49,16 @@ const {
dataset
} = toRefs(props.chartConfig.option)
const option = shallowReactive({
dataset: configOption.dataset
})
//const option = shallowReactive({
// dataset: configOption.dataset
//})
//
watch(
() => props.chartConfig.option.dataset,
(newData: any) => {
try {
option.dataset = toNumber(newData, 2)
dataset.value = toNumber(newData, 2)
} catch (error) {
console.log(error)
}
@ -69,6 +69,6 @@ watch(
)
//
useChartDataFetch(props.chartConfig, useChartEditStore, (newData: number) => {
option.dataset = toNumber(newData, 2)
dataset.value = toNumber(newData, 2)
})
</script>