Skip to content

Commit 77a0a3b

Browse files
committed
[Fix] 🐛 Conversation Save Error #414
1 parent 01d0153 commit 77a0a3b

File tree

1 file changed

+11
-0
lines changed
  • frontend/src/views/chat/components/Chat

1 file changed

+11
-0
lines changed

frontend/src/views/chat/components/Chat/Chat.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,17 @@ const initSysConfig = async () => {
143143
MATD_Cookie = crypto.randomUUID();
144144
cookies.set('MicrosoftApplicationsTelemetryDeviceId', MATD_Cookie, 60, '/');
145145
}
146+
let RWBF_Cookie = userStore.getUserRwBf();
147+
if (RWBF_Cookie != '') {
148+
let RWBFs = RWBF_Cookie.split('&');
149+
for (let i = 0; i < RWBFs.length; i++) {
150+
if (RWBFs[i].startsWith('wls=')) {
151+
RWBFs[i] = 'wls=2';
152+
}
153+
}
154+
RWBF_Cookie = RWBFs.join('&');
155+
userStore.saveUserRwBf(RWBF_Cookie);
156+
}
146157
if (res.data.info != '') {
147158
const info = JSON.parse(res.data.info);
148159
message.create(info['content'], {

0 commit comments

Comments
 (0)