diff --git a/client/js/profile.js b/client/js/profile.js index a28f1af..d6ee6aa 100644 --- a/client/js/profile.js +++ b/client/js/profile.js @@ -6,6 +6,8 @@ import { typeError, } from "../lib/index.js"; +//# 헤더 처리 + // rendering const profileList = getNode(".profile__lists"); @@ -13,6 +15,10 @@ async function renderProfile(url = "http://localhost:3000/users") { try { const users = (await tiger.get(url)).data; + //! header 처리 + // include 땡겨오면 none 해줄게!! + getNode("nav").style.display = "none"; + if (!users.length) return; if (!isString(url)) typeError("함수 renderProfile의 매개변수는 문자이어야 합니다."); diff --git a/client/js/profile_select.js b/client/js/profile_select.js index 605bf25..bb8212f 100644 --- a/client/js/profile_select.js +++ b/client/js/profile_select.js @@ -18,6 +18,10 @@ async function renderProfileSelect(url = "http://localhost:3000/users") { try { const users = (await tiger.get(url)).data; + //! header 처리 + // include 땡겨오면 none 해줄게!! + getNode("nav").style.display = "none"; + if (!users.length) return; if (!isString(url)) typeError("함수 renderProfile의 매개변수는 문자이어야 합니다."); diff --git a/client/profile.html b/client/profile.html index 0b4de1d..20c2343 100644 --- a/client/profile.html +++ b/client/profile.html @@ -5,12 +5,12 @@ TAING - 프로필 편집 - + /> --> TAING - 프로필 선택 - + /> -->