mirror of
https://github.com/ArenMg/aren.git
synced 2024-11-27 19:03:56 +00:00
redirect to homepage after creating a sondage
This commit is contained in:
parent
1837aa5cc6
commit
f3dae6a1ce
1 changed files with 4 additions and 2 deletions
|
@ -135,7 +135,7 @@ const getUrl = window.location;
|
||||||
// if (baseUrl.endsWith("/")) {
|
// if (baseUrl.endsWith("/")) {
|
||||||
// baseUrl = baseUrl.slice(0, -1);
|
// baseUrl = baseUrl.slice(0, -1);
|
||||||
// }
|
// }
|
||||||
let baseUrl = getUrl.protocol + "//" + getUrl.host
|
let baseUrl = getUrl.protocol + "//" + getUrl.host;
|
||||||
module.exports = {
|
module.exports = {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -179,7 +179,9 @@ module.exports = {
|
||||||
this.url = "";
|
this.url = "";
|
||||||
this.selectedDate = new Date();
|
this.selectedDate = new Date();
|
||||||
|
|
||||||
swal("Succès!", "L'agenda a été créé", "success");
|
swal("Succès!", "L'agenda a été créé", "success").then((value) => {
|
||||||
|
location.href = baseUrl;
|
||||||
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
swal("Erreur!", `${error}`, "error");
|
swal("Erreur!", `${error}`, "error");
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
Loading…
Reference in a new issue