no message

main
LX 2023-12-06 16:48:25 +08:00
parent 7e04879d36
commit e124c7a0ba
3 changed files with 5 additions and 2 deletions

View File

@ -64,7 +64,7 @@
"husky": "^7.0.4",
"less": "^4.2.0",
"mockjs": "^1.1.0",
"open-data-v": "link:src",
"postcss": "^8.4.28",
"postcss-html": "^1.5.0",
"postcss-less": "^6.0.0",

View File

@ -29,6 +29,7 @@ const resizeHandler = (entry: ResizeObserverEntry) => {
}
const dataHandler = (event) => {
console.log(event)
const item: Record<string, any> = event as Record<string, any>
if (propValue.base.tag && item[propValue.base.tag] !== undefined) {
customeText.value = item[propValue.base.tag]
@ -47,7 +48,7 @@ onMounted(async () => {
}
})
useEventBus('globalData', dataHandler)
useEventBus('39bcfcba452344dea4f34e9d068a8f6e', dataHandler)
</script>
<style lang="less" scoped>

View File

@ -53,6 +53,8 @@ const dataChange = (resp: any, _?: string) => {
const propValue = props.component.propValue
const myChannel = propValue.dataOption.channel
const channel = myChannel ? myChannel : props.component.id
console.log(data)
console.log(channel)
if (propValue.isRegExp) {
const keys = Object.keys(channels)
const matchReg = new RegExp(channel)