| 
					
				 | 
			
			
				@@ -54,18 +54,18 @@ export default defineComponent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (props.selectType === 'add') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!route.query.id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           await request.post('/api-school/sysNewsInformation/save', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             data: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               ...forms 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // showNotify({ type: 'primary', message: '添加成功' }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } else if (props.selectType === 'update') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           await request.post('/api-school/sysNewsInformation/update', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             data: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               ...forms, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              id: props.selectItem.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              id: route.query.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           // showNotify({ type: 'primary', message: '修改成功' }) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -132,7 +132,7 @@ export default defineComponent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <div class={'btnGroup'} style={{ marginTop: '24px' }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Button type="primary" block round onClick={onSubmit}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            {props.selectType === 'add' ? '发布资讯' : '确认修改'} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            {!route.query.id ? '发布资讯' : '确认修改'} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </Button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 |