Commit 283c148f by lijiabin

【需求 21402】 fix: 增加inject的默认值,优化样式

parent ba308dc8
...@@ -7,7 +7,7 @@ import { useUploadImg } from '@/hooks' ...@@ -7,7 +7,7 @@ import { useUploadImg } from '@/hooks'
import type { IEmoji } from '@/utils/emoji/type' import type { IEmoji } from '@/utils/emoji/type'
import { MENTION_USER_FN_KEY, IS_REAL_KEY_COMMENT } from '@/constants/symbolKey' import { MENTION_USER_FN_KEY, IS_REAL_KEY_COMMENT } from '@/constants/symbolKey'
const isReal = inject(IS_REAL_KEY_COMMENT)! const isReal = inject(IS_REAL_KEY_COMMENT, 0)
function escapeHtml(str: string) { function escapeHtml(str: string) {
return str return str
.replace(/&/g, '&') .replace(/&/g, '&')
......
...@@ -434,8 +434,8 @@ onActivated(async () => { ...@@ -434,8 +434,8 @@ onActivated(async () => {
class="w-fit max-w-full rounded-lg px-3 py-2 shadow-[0_0.125rem_0.5rem_rgba(39,74,120,0.04)]" class="w-fit max-w-full rounded-lg px-3 py-2 shadow-[0_0.125rem_0.5rem_rgba(39,74,120,0.04)]"
:class=" :class="
message.is_self message.is_self
? 'rounded-tr-[0.375rem] border border-[#d4e4ff] bg-[#dbeaff] text-[#1a3f73]' ? 'rounded-tr-[0.375rem] bg-[#dbeaff]'
: 'rounded-tl-[0.375rem] border border-[#d9e3ef] bg-[#f3f7fc] text-[#1f2f46]' : 'rounded-tl-[0.375rem] bg-[#dff1fd]'
" "
> >
<el-dropdown <el-dropdown
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment