fix redirect back umkm

This commit is contained in:
arifal
2025-03-13 15:39:32 +07:00
parent 0116147e06
commit 0258ca9f04
7 changed files with 42 additions and 44 deletions

View File

@@ -5,6 +5,7 @@ document.addEventListener("DOMContentLoaded", function () {
const modalButton = document.querySelector(".btn-modal");
const form = document.querySelector("form#create-update-form");
var authLogo = document.querySelector(".auth-logo");
let menuId = document.getElementById("menuId").value;
if (!saveButton || !form) return;
@@ -74,7 +75,7 @@ document.addEventListener("DOMContentLoaded", function () {
}, 2000);
setTimeout(() => {
window.location.href = "/data/web-umkm";
window.location.href = `/data/web-umkm?menu_id=${menuId}`;
}, 1000);
} else {
if (authLogo) {