Is there something to auto update this code in vue?

后端 未结 2 1658
情书的邮戳
情书的邮戳 2021-01-27 18:18

I got this button in the navigator that shows up when a user is logged in and when the user logs out the button is gone. But now i need to refresh my page before the button remo

2条回答
  •  醉梦人生
    2021-01-27 18:58

    https://stackoverflow.com/a/40586872/8647537

    Checkout the answer above. The lazy way or not very good approach will be

    vm.$forceUpdate();

    it is not good approach though. Read more in mentioned link.

提交回复
热议问题