From 4bad97a81d0edfd5c2d8a602fc0c478ec7fc98ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=8C=E7=B3=96=E5=8C=85=E5=AD=90?= Date: Sat, 21 Mar 2026 02:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.ts | 5 ++++- src/views/api/Hitokoto.vue | 12 ++++++------ src/views/api/Music.vue | 21 ++++++++------------- src/views/api/PhotoWall.vue | 24 ++++++++++++------------ src/views/system/SystemConfig.vue | 2 +- src/views/system/SystemRole.vue | 2 +- src/views/system/SystemUser.vue | 2 +- 7 files changed, 33 insertions(+), 35 deletions(-) diff --git a/src/utils/http.ts b/src/utils/http.ts index d310d6b..0bd0d5f 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -4,7 +4,10 @@ import store from '@/store' import { router } from '@/router' const http = axios.create({ - timeout: 10000 + timeout: 10000, + paramsSerializer: { + indexes: null + } }) // 添加请求拦截器 diff --git a/src/views/api/Hitokoto.vue b/src/views/api/Hitokoto.vue index 4286409..4ebeb28 100644 --- a/src/views/api/Hitokoto.vue +++ b/src/views/api/Hitokoto.vue @@ -2,10 +2,10 @@
- + - + @@ -77,13 +77,13 @@ import { ElMessage, ElMessageBox } from 'element-plus' import http from '@/utils/http' class HitokotoPage extends Page { - content?: string - type?: string + hitokoto?: string + types?: string[] createdAt?: [Date, Date] reset() { super.reset() - this.content = undefined - this.type = undefined + this.hitokoto = undefined + this.types = [] this.createdAt = undefined } } diff --git a/src/views/api/Music.vue b/src/views/api/Music.vue index 31281d3..673d1be 100644 --- a/src/views/api/Music.vue +++ b/src/views/api/Music.vue @@ -1,22 +1,19 @@