diff --git a/src/pages/demoPages/messageBoard/Board_page.vue b/src/pages/demoPages/messageBoard/Board_page.vue index 307bd02..70fd895 100644 --- a/src/pages/demoPages/messageBoard/Board_page.vue +++ b/src/pages/demoPages/messageBoard/Board_page.vue @@ -113,7 +113,7 @@ watch(sendCD, (newValue) => { }); onMounted(async () => { - sendCD.value = store.state.demos.board?.sendCD; + sendCD.value = store.state.demos.board?.sendCD || 0; await refreshBoard(); }) @@ -142,7 +142,15 @@ onMounted(async () => { Avatar
{{ store.state.userInfo.username }}
-
<{{ store.state.userInfo.role_id === 1 ? '管理员' : '普通用户' }}>
+
<{{ (function (){ + if (store.state.userInfo.role_id === 1) { + return '管理员'; + } + if (store.state.userInfo.role_id === 0) { + return '普通用户'; + } + return '游客' + })() }}>
@@ -265,6 +273,7 @@ onMounted(async () => { .sender-tips img { width: 50px; + height: 50px; margin: 15px 15px 0; border-radius: 50%; } diff --git a/src/pages/demoPages/messageBoard/Message.vue b/src/pages/demoPages/messageBoard/Message.vue index fbd87d4..2c97d06 100644 --- a/src/pages/demoPages/messageBoard/Message.vue +++ b/src/pages/demoPages/messageBoard/Message.vue @@ -139,13 +139,13 @@ async function deleteMessage(id, message) { } -//.like { -// display: flex; -// align-items: center; -// overflow: hidden; -// gap: 3px; -// color: gray; -//} +.like { + display: flex; + align-items: center; + overflow: hidden; + gap: 3px; + color: gray; +} .like button { color: gray; diff --git a/src/pages/toolPages/gpaCalculator/gpaCalculator_page.vue b/src/pages/toolPages/gpaCalculator/gpaCalculator_page.vue index aade52a..c0bbae4 100644 --- a/src/pages/toolPages/gpaCalculator/gpaCalculator_page.vue +++ b/src/pages/toolPages/gpaCalculator/gpaCalculator_page.vue @@ -73,7 +73,7 @@ onMounted(() => { - +
@@ -87,10 +87,11 @@ onMounted(() => {