|
|
@@ -32,6 +32,7 @@ import {ref, onMounted, onUnmounted, defineExpose} from 'vue'
|
|
|
const websocketonmessage = (e)=>{ //数据接收
|
|
|
console.log(e)
|
|
|
const redata = JSON.parse(e.data)
|
|
|
+ console.log(redata,'234')
|
|
|
if (redata.message.title == 'refresh') {
|
|
|
Modal.info({
|
|
|
title: '版本更新',
|
|
|
@@ -58,6 +59,18 @@ import {ref, onMounted, onUnmounted, defineExpose} from 'vue'
|
|
|
data: redata
|
|
|
}
|
|
|
}))
|
|
|
+ }else if (redata.message.type == 'pay_remind'){
|
|
|
+ notification.info({
|
|
|
+ message: redata.message.type,
|
|
|
+ description: redata.message.text,
|
|
|
+ onClick: () => {
|
|
|
+ },
|
|
|
+ });
|
|
|
+ window.dispatchEvent(new CustomEvent('pay_remind',{
|
|
|
+ detail: {
|
|
|
+ data: redata
|
|
|
+ }
|
|
|
+ }))
|
|
|
}
|
|
|
else {
|
|
|
notification.info({
|