src/views/education/department/edit.vue
@@ -22,9 +22,11 @@ import { mapGetters, mapState, mapActions } from 'vuex' import subjectApi from '@/api/subject' import departmentApi from '@/api/department' import enumItem from '@/store/modules/enumItem' export default { data () { return { depart:[], form: { id: null, name: '', @@ -64,6 +66,7 @@ departmentApi.addData(this.form.name).then(res=>{ console.log(res) if (res.code ==1){ _this.$message.success(res.message) _this.delCurrentView(_this).then(() => { _this.$router.push('/education/department/list')