Skip to content

Commit e912a5b

Browse files
committed
update to 1.0.16
1 parent a2d5520 commit e912a5b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.jeemv.springboot.vuejs</groupId>
88
<artifactId>springboot-vuejs</artifactId>
9-
<version>1.0.15</version>
9+
<version>1.0.16</version>
1010

1111
<name>springboot-vuejs</name>
1212
<url>https://github.com/jeeMv/SpringBoot-VueJS</url>

src/main/java/io/github/jeemv/springboot/vuejs/utilities/Http.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Http class for Http requests
77
*
88
* @author jcheron myaddressmail@gmail.com
9-
* @version 1.0.3
9+
* @version 1.0.4
1010
*/
1111
public class Http {
1212

@@ -84,9 +84,9 @@ public static String request(String method, String url, Object data, String succ
8484
}
8585
String error = "";
8686
if (!"".equals(errorCallback) && errorCallback != null) {
87-
error = ",function(response) {" + errorCallback + "}";
87+
error = ",(response)=>{" + errorCallback + "}";
8888
}
89-
String result = "this.$http[" + method + "](" + url + ", " + data + ")" + ".then(function(response){" + successCallback + "}" + error + ");";
89+
String result = "this.$http[" + method + "](" + url + ", " + data + ")" + ".then((response)=>{" + successCallback + "}" + error + ");";
9090
return result;
9191
}
9292

0 commit comments

Comments
 (0)