From ac45296d0747b8f246c62f3bf9ba065bd8addb99 Mon Sep 17 00:00:00 2001 From: 42inshin Date: Fri, 29 Dec 2023 14:33:00 +0900 Subject: [PATCH] =?UTF-8?q?[FE]=20FIX:=20type-check=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 40 +++++++++++++++++++------- package.json | 2 +- src/components/home/UserNumSection.vue | 1 - src/views/HomeView.vue | 3 +- 4 files changed, 31 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 70bcce1..2ed6144 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "24hane", - "version": "0.0.0", + "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "24hane", - "version": "0.0.0", + "version": "1.0.0", "dependencies": { "axios": "^1.3.3", "pinia": "^2.0.28", @@ -17,7 +17,7 @@ "devDependencies": { "@rushstack/eslint-patch": "^1.1.4", "@types/jsdom": "^20.0.1", - "@types/node": "^18.11.12", + "@types/node": "^18.19.3", "@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue-jsx": "^3.0.0", "@vue/eslint-config-prettier": "^7.0.0", @@ -1046,10 +1046,13 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", - "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", - "dev": true + "version": "18.19.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.3.tgz", + "integrity": "sha512-k5fggr14DwAytoA/t8rPrIz++lXK7/DqckthCmoZOKNsEbJkId4Z//BqgApXBUGrGddrigYa1oqheo/7YmW4rg==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/semver": { "version": "7.3.13", @@ -5274,6 +5277,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/universalify": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", @@ -6409,10 +6418,13 @@ "dev": true }, "@types/node": { - "version": "18.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", - "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", - "dev": true + "version": "18.19.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.3.tgz", + "integrity": "sha512-k5fggr14DwAytoA/t8rPrIz++lXK7/DqckthCmoZOKNsEbJkId4Z//BqgApXBUGrGddrigYa1oqheo/7YmW4rg==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, "@types/semver": { "version": "7.3.13", @@ -9478,6 +9490,12 @@ "which-boxed-primitive": "^1.0.2" } }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "universalify": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", diff --git a/package.json b/package.json index e0b7820..1086b27 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "devDependencies": { "@rushstack/eslint-patch": "^1.1.4", "@types/jsdom": "^20.0.1", - "@types/node": "^18.11.12", + "@types/node": "^18.19.3", "@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue-jsx": "^3.0.0", "@vue/eslint-config-prettier": "^7.0.0", diff --git a/src/components/home/UserNumSection.vue b/src/components/home/UserNumSection.vue index f16662e..e51743f 100644 --- a/src/components/home/UserNumSection.vue +++ b/src/components/home/UserNumSection.vue @@ -4,7 +4,6 @@ import UserNumCard from "@/components/home/UserNumCard.vue"; const props = defineProps<{ numberOfPeople: { gaepo: number; - seocho: number; }; isOnline: boolean; }>(); diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 6c993f6..c913103 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -86,7 +86,6 @@ watch(getUserInfo, () => { const updateTime = () => { todayAccTime.value = getAccDate(); - // updateTime 로직 구현 }; const startTimer = () => { @@ -99,7 +98,7 @@ const startTimer = () => { updateTime(); // 그 후 매 분마다 업데이트 - intervalId.value = setInterval(updateTime, 60000); + intervalId.value = window.setInterval(updateTime, 60000); }, delay); };