關於 setup()中動態獲取 dom
需要 先 nextTick() 后再獲取,不然獲取的dom可能是不完整的
import { nextTick} from "vue";
……
const funName= async () => {
await nextTick();
}