li.shaoyi 1 month ago
parent
commit
e30691d5e5
2 changed files with 2 additions and 4 deletions
  1. 2 1
      src/packages/pc/App.vue
  2. 0 3
      src/services/websocket/message.ts

+ 2 - 1
src/packages/pc/App.vue

@@ -74,7 +74,8 @@ eventBus.$on('OrderDealedNtf', (res) => {
     const data = res as Proto.OrderDealedNtf
     ElNotification({
       title: '订单成交通知',
-      message: `订单 ${data.OrderID} 已成交,价格 ${data.TradePrice}`
+      message: `订单[${data.OrderID}]已成交,<br />成交价格:${data.TradePrice}。`,
+      dangerouslyUseHTMLString:true,
     })
   }
 })

+ 0 - 3
src/services/websocket/message.ts

@@ -43,9 +43,6 @@ export async function pushMessage50(pkg: Package50, contentType: 'encrypted' | '
                 decodeProto<Proto.OrderDealedNtf>('OrderDealedNtf', content).then((data) => {
                     // 委托单成交通知
                     eventBus.$emit('OrderDealedNtf', data)
-                    console.log('接收到委托单成交通知', data)
-                }).catch((e) => {
-                    console.log('委托单成交通知解析失败', pkg, e)
                 })
             }, delay, funCode.toString())
             break