动态消息模块的参数传递为空处理
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user