guhongwei hace 4 años
padre
commit
74e99c0f95
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/parts/chat.vue

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

@@ -65,7 +65,7 @@ export default {
         return;
       }
       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) {
           object.sender_id = this.user.uid;
           object.role = this.user.role;