vue3 Avoid app logic that relies on enumerating keys on a component instance. The keys will be em...

Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.
发现是在子组件没引用 onMounted 的问题

import { reactive, ref, computed, onMounted } from "vue";

onMounted(() => {
  console.log("子组件");
});

你可能感兴趣的:(vue3 Avoid app logic that relies on enumerating keys on a component instance. The keys will be em...)