修复手机端无法响应的问题
This commit is contained in:
23
src/main/resources/templates/dist/axiosTest.html
vendored
Normal file
23
src/main/resources/templates/dist/axiosTest.html
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>axios</title>
|
||||
</head>
|
||||
<body>
|
||||
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
||||
<script>
|
||||
var data = "";
|
||||
var data = "";
|
||||
axios.get('http://localhost:8080/cms/download/findall')
|
||||
.then(function (response) {
|
||||
//console.log(response.data);
|
||||
data = response.data
|
||||
})
|
||||
.catch(function (error) {
|
||||
//console.log(error);
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user