|  | @@ -8,7 +8,7 @@
 | 
	
		
			
				|  |  |      >
 | 
	
		
			
				|  |  |        <subject-choice :course0="course0" :course1="course1" :year="year" ></subject-choice>
 | 
	
		
			
				|  |  |        <span slot="footer" class="dialog-footer">
 | 
	
		
			
				|  |  | -        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
 | 
	
		
			
				|  |  | +        <el-button type="primary" @click="cancel">确 定</el-button>
 | 
	
		
			
				|  |  |        </span>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |  </template>
 | 
	
	
		
			
				|  | @@ -18,6 +18,7 @@ export default {
 | 
	
		
			
				|  |  |    components: {
 | 
	
		
			
				|  |  |      SubjectChoice
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | +  inject: ['optionalMajors'],
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return{
 | 
	
		
			
				|  |  |        dialogVisible:false,
 | 
	
	
		
			
				|  | @@ -33,8 +34,10 @@ export default {
 | 
	
		
			
				|  |  |        this.course0 = course0
 | 
	
		
			
				|  |  |        this.course1 = course1
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    handleClose() {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    cancel() {
 | 
	
		
			
				|  |  | +      this.dialogVisible = false
 | 
	
		
			
				|  |  | +      this.optionalMajors()
 | 
	
		
			
				|  |  | +      this.$emit('chooseReally',)
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 |