保存进度!
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										646
									
								
								code/web/car_dealer/js/axios/1.1.3/axios.js.map
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										646
									
								
								code/web/car_dealer/js/axios/1.1.3/axios.js.map
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -2,7 +2,7 @@
 | 
				
			|||||||
 * @Author: Kane
 | 
					 * @Author: Kane
 | 
				
			||||||
 * @Date: 2022-10-31 13:11:55
 | 
					 * @Date: 2022-10-31 13:11:55
 | 
				
			||||||
 * @LastEditors: Kane
 | 
					 * @LastEditors: Kane
 | 
				
			||||||
 * @LastEditTime: 2022-10-31 17:13:25
 | 
					 * @LastEditTime: 2022-10-31 22:58:03
 | 
				
			||||||
 * @FilePath: \car_dealer\vue\axios.html
 | 
					 * @FilePath: \car_dealer\vue\axios.html
 | 
				
			||||||
 * @Description: 
 | 
					 * @Description: 
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
@@ -19,7 +19,8 @@
 | 
				
			|||||||
        <link rel="stylesheet" href="../css/normalize.css" />
 | 
					        <link rel="stylesheet" href="../css/normalize.css" />
 | 
				
			||||||
        <link rel="stylesheet" href="../css/kane.css" />
 | 
					        <link rel="stylesheet" href="../css/kane.css" />
 | 
				
			||||||
        <link rel="stylesheet" href="../css/axios/axios.css" />
 | 
					        <link rel="stylesheet" href="../css/axios/axios.css" />
 | 
				
			||||||
        <script src="https://unpkg.com/axios@1.1.3/dist/axios.min.js"></script>
 | 
					        <!-- <script src="https://unpkg.com/axios@1.1.3/dist/axios.min.js"></script> -->
 | 
				
			||||||
 | 
					        <script src="../js/axios/1.1.3/axios.js"></script>
 | 
				
			||||||
        <script src="../js/vue/vue.global.js"></script>
 | 
					        <script src="../js/vue/vue.global.js"></script>
 | 
				
			||||||
    </head>
 | 
					    </head>
 | 
				
			||||||
    <body>
 | 
					    <body>
 | 
				
			||||||
@@ -86,7 +87,19 @@
 | 
				
			|||||||
                            console.log(response);
 | 
					                            console.log(response);
 | 
				
			||||||
                        })
 | 
					                        })
 | 
				
			||||||
                        .catch((error) => {
 | 
					                        .catch((error) => {
 | 
				
			||||||
 | 
					                            //先检查response,看看是否因为状态码不是200
 | 
				
			||||||
 | 
					                            if (error.response) {
 | 
				
			||||||
                                console.log(error.response.data);
 | 
					                                console.log(error.response.data);
 | 
				
			||||||
 | 
					                                console.log(error.response.status);
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                            //没有收到响应,就检查request
 | 
				
			||||||
 | 
					                            else if (error.request) {
 | 
				
			||||||
 | 
					                                console.log(error.request);
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                            //如果request也为undefined,说明是引擎抛出了异常
 | 
				
			||||||
 | 
					                            else {
 | 
				
			||||||
 | 
					                                console.log(error.message);
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
                        });
 | 
					                        });
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user