Skip to content

Commit fe55912

Browse files
red point self
1 parent aeeb12f commit fe55912

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/components/EditorComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const toolbars = reactive({
5151
imagelink: true, // 图片链接
5252
code: true, // code
5353
table: true, // 表格
54-
fullscreen: true, // 全屏编辑
54+
fullscreen: false, // 全屏编辑
5555
readmodel: false, // 沉浸式阅读
5656
htmlcode: false, // 展示html源码
5757
help: true, // 帮助

src/pages/AvatarPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const setAvatar = () => {
4040
title: res.data,
4141
icon: res.data.includes('Success') ? 'success' : 'error',
4242
}).then(
43-
() => { localStorage.setItem('avatar', avatar.value); router.push('/chat'); }
43+
() => { Swal.fire('Login Expired. Please login again.'); router.push('/login'); }
4444
);
4545
});
4646
};

src/stores/check.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export const useCheckStore = defineStore('check', () => {
3030
history.value[key] = [...history.value[key], ...res.data.message[key]];
3131
if (!unread.value[key])
3232
unread.value[key] = 0;
33-
unread.value[key]+=res.data.message[key].length;
33+
if (res.data.message[key][0].sender===info.value.username)
34+
unread.value[key]+=res.data.message[key].length;
3435
LocalStorage.set('history', history.value)
3536
if (!order.value) order.value = {};
3637
if (!(key in order.value)) order.value[key] = [];

0 commit comments

Comments
 (0)