automatische environment für mockData in develop ,nach "npm run build" geht autoatisch zu production

This commit is contained in:
ISA
2024-10-23 18:44:11 +02:00
parent 85bda4323c
commit e602a31b7b
15 changed files with 194 additions and 124 deletions

View File

@@ -114,7 +114,7 @@ function KueModal({ showModal, onClose, slot, onModulNameChange }) {
// Falls Änderungen vorhanden sind, die fetch-Requests auslösen
if (Object.keys(changes).length > 0) {
let url = `https://${window.ip}:443/cpl?Service/kueDetail.HTML&slot=${slot}`;
let url = `/cpl?/SERVICE/kueDetail.HTML&slot=${slot}`;
Object.keys(changes).forEach((paramKey) => {
url += `&${paramKey}${slot}=${encodeURIComponent(changes[paramKey])}`;
@@ -142,7 +142,7 @@ function KueModal({ showModal, onClose, slot, onModulNameChange }) {
};
const handleDisplayEinschalten = () => {
const url = `https://${window.ip}:443/cpl?Service/kueDetail.HTML&KSD${slot}=1`;
const url = `/CPL?/Service/kueDetail.HTML&KSD${slot}=1`;
fetch(url, { method: "GET" })
.then((response) => {
if (response.ok) {