vue 每次进页面进行一次刷新
写在 mounted或者created生命周期里面mounted() {if (location.href.indexOf("#reloaded") == -1) {location.href = location.href + “#reloaded”;location.reload();}},
·
写在 mounted 或者created生命周期里面
mounted() {
if (location.href.indexOf("#reloaded") == -1) {
location.href = location.href + “#reloaded”;
location.reload();
}
},
更多推荐
已为社区贡献1条内容
所有评论(0)