소스 검색

fix admin category create

ali 2 년 전
부모
커밋
2cafc9c684
1개의 변경된 파일과 2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      src/pages/Admin/Category/create.vue

+ 2 - 5
src/pages/Admin/Category/create.vue

@@ -71,7 +71,7 @@ export default {
       showRouteName: 'Admin.Category.Show',
       inputs: [
         { type: 'input', name: 'title', responseKey: 'title', label: 'نام دسته بندی', col: 'col-md-6' },
-        { type: BtnControlComp, name: 'btn', responseKey: 'btn', label: 'تایید', col: 'col-md-6' }
+        { type: BtnControlComp, name: 'btn', responseKey: 'btn', atClick: this.createCategory, label: 'تایید', col: 'col-md-6' }
       ]
     }
   },
@@ -79,10 +79,7 @@ export default {
     this.mounted = true
   },
   methods: {
-    onInputClick (data) {
-      if (data.input.name !== 'btn') {
-        return
-      }
+    createCategory () {
       this.$refs.classroomEntityCreate.createEntity()
     }
   }