How can I use immediate: true in watch but at the same time get access to values of created hook in Vuejs?

前端 未结 0 574
攒了一身酷
攒了一身酷 2020-12-10 16:48

I am using the following watch:

watch: {
    $route: {
        immediate: true,
        handler(newVal) {
            if (some condition ...) {
                       


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题