Merge branch 'main' of git.zdool.com:xs/ggfwjsc

This commit is contained in:
姚宇浩 2024-07-02 10:35:58 +08:00
commit 66962bf6a8
3 changed files with 10 additions and 6 deletions

View File

@ -409,7 +409,7 @@ onMounted(() => {
startAutoSwitching();
});
onBeforeMount(() => {
onBeforeMount(async () => {
getData();
});

View File

@ -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();

View File

@ -687,11 +687,6 @@ onBeforeMount(async () => {
});
onMounted(() => {
startAutoScroll();
console.log(
mainRef.value.scrollTop,
mainRef.value.scrollHeight,
mainRef.value.clientHeight
);
});
</script>