vue初学小白菜记录:
解决方法:
1、用window.location.href="/home" ,不要用this.$router.push("/home")
2、在首页home.vue的created函数里面加个刷新location.reload()
vue初学小白菜记录:
解决方法:
1、用window.location.href="/home" ,不要用this.$router.push("/home")
2、在首页home.vue的created函数里面加个刷新location.reload()