URL 수정

main
이범준 2 months ago
parent 7bc31e1ff0
commit b7e014f3df

@ -162,7 +162,7 @@
<c:set var="dashboardScript" scope="request">
LoadScript("chartScript","/webjars/3rd-party/sneat/libs/chartjs/chartjs.js");
LoadScript("chartScript",wctx.url("/webjars/3rd-party/sneat/libs/chartjs/chartjs.js"));
var falseLineChart = `<svg xmlns="http://www.w3.org/2000/svg" class="skeleton"

@ -178,12 +178,12 @@
function LoadScript(scriptId, scriptPath){
if(document.getElementById(scriptId) == null){
$("body").append("<script id='"+scriptId+"' src='"+"<c:url value='' />"+scriptPath+"' />");
$("body").append("<script id='"+scriptId+"' src='"+scriptPath+"' />");
}
}
async function LoadJson(path){
let resp = await fetch("<c:url value='' />"+path);
let resp = await fetch(path);
return await resp.json();
}

Loading…
Cancel
Save