add config for bingChat UI

This commit is contained in:
James Feng Cao 2023-04-01 23:34:44 +08:00
parent 9ec7186e34
commit c8a8b0214f
12 changed files with 50 additions and 30 deletions

View file

@ -15,8 +15,17 @@ async function setChatHubWithMagic(user) {
// ture|false|'repeat'
async function getChatHubWithMagic() {
let v = localStorage.ChatHubWithMagic;
if (v) return v;
return true;
if (v) {
switch(v){
case 0:
break;
case 1:
return false;
case 2:
return true;
}
}
return 'repeat';
}
//设置上次创建的聊天