打开编辑弹框时:
this.$nextTick(() => { this.ruleForm = { ...val }; })
打开添加弹框时:
addRole() { this.drawer = true; this.$nextTick(() => { // 必须要每个 form-item 加 prop才会清除 this.$refs.ruleForm.resetFields(); }) },
📒 相关文章
💬 COMMENT