fix: BUG修改

This commit is contained in:
kun 2023-05-29 18:57:22 +08:00
parent c9ff390443
commit 7069e572d4
2 changed files with 5 additions and 4 deletions

View File

@ -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='

View File

@ -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());