This commit is contained in:
parent
eaca2116f7
commit
056d43dd88
|
@ -409,7 +409,7 @@ onMounted(() => {
|
|||
startAutoSwitching();
|
||||
});
|
||||
|
||||
onBeforeMount(() => {
|
||||
onBeforeMount(async () => {
|
||||
getData();
|
||||
});
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ import {
|
|||
defineProps,
|
||||
ref,
|
||||
nextTick,
|
||||
watch,
|
||||
} from "vue";
|
||||
// 局部引入echarts核心模块
|
||||
import * as echarts from "echarts";
|
||||
|
@ -168,9 +169,17 @@ const setChart1 = () => {
|
|||
data.list2.push(item.rs); //数量
|
||||
});
|
||||
};
|
||||
// 监听
|
||||
watch(
|
||||
() => props.list,
|
||||
(newVal, oldVal) => {
|
||||
console.log(2222,newVal, oldVal)
|
||||
}
|
||||
);
|
||||
onBeforeMount(() => {
|
||||
setTimeout(() => {
|
||||
data.list = props.list;
|
||||
console.log(1111,data.list)
|
||||
setChart1();
|
||||
getOption();
|
||||
setChart();
|
||||
|
|
|
@ -687,11 +687,6 @@ onBeforeMount(async () => {
|
|||
});
|
||||
onMounted(() => {
|
||||
startAutoScroll();
|
||||
console.log(
|
||||
mainRef.value.scrollTop,
|
||||
mainRef.value.scrollHeight,
|
||||
mainRef.value.clientHeight
|
||||
);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue