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