Commit c3b0dfd7 by Joey

fix(@gms/gms-plugin-mainpage-workflowcard): 页签模式下切换不刷新数据

parent 0c23ee37
...@@ -47,11 +47,22 @@ export default { ...@@ -47,11 +47,22 @@ export default {
val = val.properties || [] val = val.properties || []
this.reimburseList = this.mapProperties(val) this.reimburseList = this.mapProperties(val)
}) })
this.$root.$on('updated', this.refresh)
}, },
unmounted() { beforeUnmount() {
this.$root.$off('updated', this.refresh)
window.GMS.vbus.$off('widgetPluginPropertiesChange') window.GMS.vbus.$off('widgetPluginPropertiesChange')
}, },
methods: { methods: {
refresh(visible) {
if (visible == 'show') {
const list = [...this.reimburseList]
this.reimburseList = []
this.$nextTick(() => {
this.reimburseList = list
})
}
},
addFunction(l = []) { addFunction(l = []) {
for (let o of l) { for (let o of l) {
if (o.type == 'ROUTE') { if (o.type == 'ROUTE') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment