From 05ce486f467ee5d456a3bd8c14a29824cb3d878c Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 8 Oct 2023 20:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E7=99=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/chat/ChatClientTest.js | 12 ++++++------ frontend/src/components/ChatRenderer/AuthorChip.vue | 4 ++-- frontend/src/components/ChatRenderer/constants.js | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/api/chat/ChatClientTest.js b/frontend/src/api/chat/ChatClientTest.js index d98730c..64ae247 100644 --- a/frontend/src/api/chat/ChatClientTest.js +++ b/frontend/src/api/chat/ChatClientTest.js @@ -63,18 +63,18 @@ const EMOTICONS = [ ] const AUTHOR_TYPES = [ - { weight: 10, value: constants.AUTHRO_TYPE_NORMAL }, - { weight: 5, value: constants.AUTHRO_TYPE_MEMBER }, - { weight: 2, value: constants.AUTHRO_TYPE_ADMIN }, - { weight: 1, value: constants.AUTHRO_TYPE_OWNER } + { weight: 10, value: constants.AUTHOR_TYPE_NORMAL }, + { weight: 5, value: constants.AUTHOR_TYPE_MEMBER }, + { weight: 2, value: constants.AUTHOR_TYPE_ADMIN }, + { weight: 1, value: constants.AUTHOR_TYPE_OWNER } ] function randGuardInfo() { let authorType = randomChoose(AUTHOR_TYPES) let privilegeType - if (authorType === constants.AUTHRO_TYPE_MEMBER) { + if (authorType === constants.AUTHOR_TYPE_MEMBER) { privilegeType = randInt(1, 3) - } else if (authorType === constants.AUTHRO_TYPE_ADMIN) { + } else if (authorType === constants.AUTHOR_TYPE_ADMIN) { privilegeType = randInt(0, 3) } else { privilegeType = 0 diff --git a/frontend/src/components/ChatRenderer/AuthorChip.vue b/frontend/src/components/ChatRenderer/AuthorChip.vue index f5b3bdd..8d0ba3e 100644 --- a/frontend/src/components/ChatRenderer/AuthorChip.vue +++ b/frontend/src/components/ChatRenderer/AuthorChip.vue @@ -12,7 +12,7 @@ :isAdmin="false" :privilegeType="privilegeType" >