Commit 6743ca74 authored by chenqikuai's avatar chenqikuai

fix: 修复navbar title的显示

parent 456d17aa
<template> <template>
<div class="navbar w-full" style="z-index: 300"> <div class="navbar w-full" style="z-index: 300">
<div <div
class="h-full theBar flex items-center px-5 justify-center relative " class="h-full theBar flex items-center px-5 justify-center relative"
style="background:#F7F7FA" style="background:#F7F7FA"
v-bind="$attrs" v-bind="$attrs"
> >
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
size="18" size="18"
:color="iconColor" :color="iconColor"
/> />
<div class="flex-shrink-0" style="width: 18px; height:18px;"></div>
<icon <icon
v-if="showSecondIcon" v-if="showSecondIcon"
name="icon-kefu" name="icon-kefu"
...@@ -30,7 +31,7 @@ ...@@ -30,7 +31,7 @@
@click="$router.push(path)" @click="$router.push(path)"
:color="iconColor" :color="iconColor"
/> />
<div class="title">{{ title }}</div> <div class="title whitespace-nowrap overflow-hidden overflow-ellipsis px-2">{{ title }}</div>
</div> </div>
</div> </div>
<div class="some-block" v-if="occupyPosition"></div> <div class="some-block" v-if="occupyPosition"></div>
......
...@@ -51,7 +51,7 @@ export const getDisplayNamesFromAddress = async ( ...@@ -51,7 +51,7 @@ export const getDisplayNamesFromAddress = async (
return addressList.map((item) => { return addressList.map((item) => {
const msg = fullList.find((i: any) => i?.addr === item) const msg = fullList.find((i: any) => i?.addr === item)
if (msg?.out_let_name) { if (msg?.out_let_name) {
return msg?.out_let_name + '客服经理' return msg?.out_let_name + msg.user_name
} else { } else {
return msg?.phone return msg?.phone
} }
......
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