Commit 10310604 authored by chenqikuai's avatar chenqikuai

fix: 修复客服经理发送的消息客户无法收到的bug

parent d34b7fd5
......@@ -56,6 +56,8 @@ import { textInputStore } from "@/store/textInputStore";
import { v4 as uuidv4 } from 'uuid'
import Icon from "@/components/common/Icon.vue";
import { useRoute } from "vue-router";
import { getUserMsg } from "@/utils/userMsg";
import { eRole } from "@/types/roleType";
export default defineComponent({
props: {
......@@ -113,8 +115,11 @@ export default defineComponent({
const handleSend = () => {
console.log('handle send');
const isStaff = getUserMsg()?.role === eRole.staff;
const isUser = getUserMsg()?.role === eRole.user;
console.log(isStaff, 'isStaff');
if (props.serviceShowValue === "人工服务") {
if (isUser && props.serviceShowValue === "人工服务") {
messageStore.displayNewMessage({
content: {
content: inputText.value
......
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