Commit bb46e340 authored by 郭志伟's avatar 郭志伟

fix: url不存在channelId时,移除已存在的channelId

parent e71cf276
...@@ -103,6 +103,8 @@ function setTitle(title, path, query) { ...@@ -103,6 +103,8 @@ function setTitle(title, path, query) {
function setChannelId(params) { function setChannelId(params) {
if (params.channelId) { if (params.channelId) {
localStorage.set("channelId", params.channelId); localStorage.set("channelId", params.channelId);
} else {
localStorage.remove("channelId");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment