Skip to content

Commit

Permalink
edit:chat不能为空
Browse files Browse the repository at this point in the history
  • Loading branch information
Sssitmonkey committed Dec 31, 2020
1 parent 5305f63 commit c2c58cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions env.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


const ENV_BASE_URL = {
development: 'https://dev.7wpp.com', //开发环境
production: 'https://dev.7wpp.com', //生产环境
development: 'http://peitong.test.7wpp.com', //开发环境
production: 'http://peitong.test.7wpp.com', //生产环境
}
const ENV_API_URL = {
development: `${ENV_BASE_URL.development}/addons/shopro/`, //开发环境
Expand Down
1 change: 0 additions & 1 deletion pages/public/kefu/chat/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
} from '@/env.js'

const service = BASE_URL.split('://')[1];
cosnt

export default class Socket {
constructor(initData, callback) {
Expand Down
8 changes: 5 additions & 3 deletions pages/public/kefu/chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,11 @@ export default {

// 发送消息
onSend() {
this.sendWs(this.msgText);
this.pushChat(this.msgText);
this.msgText = '';
if (!this.msgText) {
this.sendWs(this.msgText);
this.pushChat(this.msgText);
this.msgText = '';
}
this.showEmoji && this.onMask();
},

Expand Down

0 comments on commit c2c58cc

Please sign in to comment.