Commit 0b34266f authored by yyh's avatar yyh

模板基本信息模板名称非空验证

parent 425de011
......@@ -72,15 +72,19 @@ export default class BaseInfo extends Vue {
this.defaultFolderIndex = this.folderList.findIndex( findDefaultFolder );
});
}
@Emit('next')
private next() {
this.show = false;
const { templateName, folder, imgUrl} = this;
return {
if ( !templateName ) {
this.$toast("请输入模板名称");
return;
}
this.$emit('next', {
templateName,
folder,
imgUrl,
};
});
this.show = false;
}
@Emit('cancel')
private cancel() {
......
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