@@ -178,6 +178,10 @@ var vm = new Vue({
},
handleSubmit: function (name) {
handleSubmitValidate(this, name, function () {
+ if (vm.category.level === 'L2' && !vm.category.parentId) {
+ alert('请先选择父节点')
+ return
+ }
vm.saveOrUpdate()
});