zcy hace 4 años
padre
commit
5b7c9bb40a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/sys/dept/CheckAndEditModel.vue

+ 1 - 1
src/views/sys/dept/CheckAndEditModel.vue

@@ -111,7 +111,7 @@ export default {
     },
     saveData() {
       let url, type
-      if (!this.model.id) {
+      if (!this.model.deptId) {
         url = this.url.add
         type = 'post'
       } else {