提交 3156d8ff 编写于 作者: D DCloud_LXH

update: navbar cookie

上级 4e21c53d
...@@ -189,8 +189,8 @@ export default { ...@@ -189,8 +189,8 @@ export default {
forbidScroll(this.showMobilePanel) forbidScroll(this.showMobilePanel)
}, },
switchVersion () { switchVersion () {
// document.cookie = encodeURIComponent('__new_version') + "=__new_version; path=/" document.cookie = encodeURIComponent('__old_version') + "=__old_version; path=/"
document.cookie = encodeURIComponent('__new_version') + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/" // document.cookie = encodeURIComponent('__new_version') + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"
location.replace(location.origin + '?v=' + Date.now()) location.replace(location.origin + '?v=' + Date.now())
} }
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册