guhongwei 4 سال پیش
والد
کامیت
74e99c0f95
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/components/parts/chat.vue

+ 1 - 1
src/components/parts/chat.vue

@@ -65,7 +65,7 @@ export default {
         return;
         return;
       }
       }
       if (this.text != '') {
       if (this.text != '') {
-        let object = { sender_name: this.user.name, content: this.text };
+        let object = { sender_name: this.user.name ? this.user.name : this.user.adminuser, content: this.text };
         if (this.user.uid) {
         if (this.user.uid) {
           object.sender_id = this.user.uid;
           object.sender_id = this.user.uid;
           object.role = this.user.role;
           object.role = this.user.role;