Browse Source

message console.log

luoyifan 3 years ago
parent
commit
66cd8aafa9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/message.ts

+ 3 - 0
src/message.ts

@@ -7,6 +7,7 @@ import _ from 'lodash'
  * @param sender 发送者按钮(可以为空)
  */
 export function showErrorDialog(msg, sender?) {
+    console.error(msg)
     Ext.MessageBox.show({
         title: '错误',
         msg: msg,
@@ -25,6 +26,8 @@ export function msgError(msg, sender?) {
  * 中间灰底白字提示
  */
 export function msg(message: string): void {
+    console.log(message)
+
     const $body = $('body')
 
     $body.find('[xtype=tooltip]').remove()