From 2b311f787a4063eb9cd9840384d58331f8dc70d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=B0=8F=E5=95=8A=E7=99=BD?= <2053890199@qq.com> Date: Mon, 17 Nov 2025 09:41:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E5=B1=85=E4=B8=AD=E9=97=AE=E9=A2=98=E5=92=8C?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=93=8D=E5=BA=94=E5=BC=8F=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整axios超时时间为60秒 修复Loading组件动画居中问题 优化index.html的viewport设置并添加响应式字体大小 修复home页面表单布局和输入框宽度问题 移除不必要的loading隐藏调用 --- index.html | 31 ++++++++++++++++++++++++++++++- src/components/Loading.vue | 20 ++++++++++++++++++-- src/pages/home/index.vue | 8 ++++---- src/utils/axios.ts | 2 +- 4 files changed, 53 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index f0863b0..cd3aa6a 100644 --- a/index.html +++ b/index.html @@ -3,8 +3,37 @@ - + 1 +
diff --git a/src/components/Loading.vue b/src/components/Loading.vue index bb90c88..fb58129 100644 --- a/src/components/Loading.vue +++ b/src/components/Loading.vue @@ -134,7 +134,8 @@ const spinnerStyle = computed(() => { // 计算svg样式 const svgStyle = computed(() => { return { - animationDuration: '1.4s' + animationDuration: '1.4s', + transformOrigin: 'center center' } }) @@ -232,7 +233,12 @@ const textStyle = computed(() => { .loading-svg { animation: rotate 1.4s linear infinite; - transform-origin: center; + transform-origin: center center; +} + +/* 确保SVG中的circle元素也正确居中 */ +.loading-svg circle { + transform-origin: 25px 25px; /* 匹配circle的cx="25" cy="25" */ } .loading-path { @@ -270,6 +276,7 @@ const textStyle = computed(() => { border-style: solid; border-radius: 50%; animation: spin 1.4s linear infinite; + transform-origin: center center; } /* 加载文本样式 */ @@ -300,6 +307,15 @@ const textStyle = computed(() => { } } +@keyframes spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} + @keyframes bounce { 0%, 80%, 100% { transform: scale(0); diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue index df5b083..85c5b4d 100644 --- a/src/pages/home/index.vue +++ b/src/pages/home/index.vue @@ -17,7 +17,7 @@
-
+
@@ -31,7 +31,7 @@
+ maxlength="11" class="outline-none focus:border-[#E8424D] transition-colors flex-1 h-11 w-full" />