动态消息模块的参数传递为空处理

This commit is contained in:
zer0Black
2023-06-30 10:58:00 +08:00
parent 575870fb9f
commit 9a0d0e596c
2 changed files with 11 additions and 6 deletions
@@ -15,17 +15,22 @@ export default {
}
},
computed: {
comp: resolve => require([`@/views/${this.path}.vue`], resolve)
comp: function () {
if(!this.path){
return null;
}
return () => import(`@/views/${this.path}.vue`)
}
},
props: ['path', 'formData'],
props: ['path','formData'],
methods: {
detail () {
setTimeout(() => {
if (this.path) {
this.$refs.compModel.view(this.formData)
if(this.path){
this.$refs.compModel.view(this.formData);
}
}, 200)
}
},
}
}
</script>