mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-07-09 13:27:45 +00:00
feat(DevWeb): Change redirection on login submit
This commit is contained in:
@@ -48,7 +48,7 @@
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.code !== 200) throw new Error(data.message);
|
if (data.code !== 200) throw new Error(data.message);
|
||||||
})
|
})
|
||||||
.then(() => window.location.href = "${pageContext.request.contextPath}/main-menu")
|
.then(() => window.location.href = "${pageContext.request.contextPath}/lobby")
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user