From 7069e572d480b3cbfdeb463782eb4c92b2192f0a Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Mon, 29 May 2023 18:57:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 7 ++++--- src/hooks/useTime.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index 3d2f096..0c6dd71 100644 --- a/.env.development +++ b/.env.development @@ -2,9 +2,10 @@ NODE_ENV = 'development' # 本地环境接口地址(/api/index.ts文件中使用) -VITE_API_URL = 'http://192.168.34.155:6688' -# VITE_API_URL = "http://182.90.224.147:6688" +# VITE_API_URL = 'http://192.168.34.155:6688' +VITE_API_URL = "http://182.90.224.147:6688" # 上传 -VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url=' +# VITE_ULD_API_URL = 'http://192.168.34.155:8012/onlinePreview?url=' +VITE_ULD_API_URL = 'http://182.90.224.147:8012/onlinePreview?url=' diff --git a/src/hooks/useTime.ts b/src/hooks/useTime.ts index 9d79949..360387d 100644 --- a/src/hooks/useTime.ts +++ b/src/hooks/useTime.ts @@ -19,7 +19,7 @@ export const useTime = () => { year.value = date.getFullYear(); month.value = date.getMonth() + 1; week.value = "日一二三四五六".charAt(date.getDay()); - day.value = date.(); + day.value = date.getDate(); hour.value = (date.getHours() + "")?.padStart(2, "0") || new Intl.NumberFormat(undefined, { minimumIntegerDigits: 2 }).format(date.getHours());