📌  相关文章
📜  nuxt 无法读取未定义的 $refs - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:43.309000             🧑  作者: Mango

代码示例1
// Check the components methods:
// Ex:
export default {
   watchQuery(newQuery, oldQuery) {
     // Cannot read $refs of undefined is the page hasn't been created
        const test = this.$refs.test
   }
}