From 0948fd50b4ba3bafe649020eddbf7612172df81d Mon Sep 17 00:00:00 2001 From: lunaticbum Date: Fri, 6 Dec 2024 18:27:51 +0900 Subject: [PATCH] . --- src/main/resources/static/js/common.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/static/js/common.js b/src/main/resources/static/js/common.js index a5fef26..45a5e2d 100644 --- a/src/main/resources/static/js/common.js +++ b/src/main/resources/static/js/common.js @@ -109,22 +109,22 @@ function postLogin(target,type, data, key,callBackResult) { function mainPath() { console.log(`location.port >> ${location.port}`) if ('443' === location.port) { - location = location.protocol + "//" + location.hostname + ":" + location.port + document.location.replace(location.protocol + "//" + location.hostname + ":" + location.port) } else { - location = location.protocol + "//" + location.hostname + document.location.replace(location.protocol + "//" + location.hostname) } } function gotoWrite() { - document.location.href = getMainPath()+"/blog/write" + document.location.replace(getMainPath()+"/blog/write") } function gotoModify() { - document.location.href = getMainPath()+"/blog/modify" + document.location.replace(getMainPath()+"/blog/modify") } function gotoWhere() { - document.location.href = getMainPath()+"/bums/where" + document.location.replace(getMainPath()+"/bums/where") } function logout() {