退料问题修复
This commit is contained in:
		
							parent
							
								
									6a02be057f
								
							
						
					
					
						commit
						79abbac87d
					
				| 
						 | 
				
			
			@ -226,7 +226,11 @@ export default {
 | 
			
		|||
                method: 'get',
 | 
			
		||||
                data: param,
 | 
			
		||||
                success: (res) => {
 | 
			
		||||
                    if (!res.data.code) {
 | 
			
		||||
                        res = JSON.parse(decryptWithSM4(res.data))
 | 
			
		||||
                    } else {
 | 
			
		||||
                        res = res.data
 | 
			
		||||
                    }
 | 
			
		||||
                    console.log(res)
 | 
			
		||||
                    if (res.code == 200) {
 | 
			
		||||
                        if (res.data && res.data.length > 0) {
 | 
			
		||||
| 
						 | 
				
			
			@ -419,8 +423,11 @@ export default {
 | 
			
		|||
                    method: 'post',
 | 
			
		||||
                    data: param,
 | 
			
		||||
                    success: (res) => {
 | 
			
		||||
                        if (!res.data.code) {
 | 
			
		||||
                            res = JSON.parse(decryptWithSM4(res.data))
 | 
			
		||||
                        } else {
 | 
			
		||||
                            res = res.data
 | 
			
		||||
                        console.log(res)
 | 
			
		||||
                        }
 | 
			
		||||
                        if (res.code === 200) {
 | 
			
		||||
                            uni.showToast({
 | 
			
		||||
                                title: '添加成功!',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue