Skip to content

Commit

Permalink
[Fix] 🐛 Conversation Save Error #414
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed May 16, 2024
1 parent 01d0153 commit 77a0a3b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/src/views/chat/components/Chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,17 @@ const initSysConfig = async () => {
MATD_Cookie = crypto.randomUUID();
cookies.set('MicrosoftApplicationsTelemetryDeviceId', MATD_Cookie, 60, '/');
}
let RWBF_Cookie = userStore.getUserRwBf();
if (RWBF_Cookie != '') {
let RWBFs = RWBF_Cookie.split('&');
for (let i = 0; i < RWBFs.length; i++) {
if (RWBFs[i].startsWith('wls=')) {
RWBFs[i] = 'wls=2';
}
}
RWBF_Cookie = RWBFs.join('&');
userStore.saveUserRwBf(RWBF_Cookie);
}
if (res.data.info != '') {
const info = JSON.parse(res.data.info);
message.create(info['content'], {
Expand Down

0 comments on commit 77a0a3b

Please sign in to comment.