handleRefresh() {
const nowIndex = location.href.indexOf("&now=");
location.href = location.href.slice(0, nowIndex) + "&now=" + Date.now();
window.location.reload();
},
handleReloaded: function () {
const { now } = this.$route.query;
if (typeof now === "undefined" && location.href.includes("?")) {
location.href = location.href + `&now=${Date.now()}`;
window.location.reload();
}
},
js实现页面加载后再刷新一次
最新推荐文章于 2024-07-11 16:50:01 发布