陷入死循环
mounted: function() { location.reload(); },
正确方法
noReloaded: function () { if (location.href.indexOf("#reloaded") == -1) { location.href = location.href + "#reloaded"; window.location.reload(); } },
2023-10-26 21:42:28
陷入死循环
mounted: function() { location.reload(); },
正确方法
noReloaded: function () { if (location.href.indexOf("#reloaded") == -1) { location.href = location.href + "#reloaded"; window.location.reload(); } },