refactor(xumu): 优化 API 请求参数传递方式

- 在 AppDeathAudit 和 AppOutAudit 组件中,修改了 getDetail 方法的 API 请求参数传递方式
- 从使用 params 参数改为直接传递对象,简化了请求参数的处理
This commit is contained in:
aixianling
2025-01-21 09:50:15 +08:00
parent 9aed740388
commit fde372007f
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export default {
},
getDetail() {
const {id} = this.$route.query
return id && this.instance.post("/api/breed/death/getAuditPage", null, {params: {id}}).then(res => {
return id && this.instance.post("/api/breed/death/getAuditPage", {id}).then(res => {
if (res?.data) {
const detail = res.data || {}
if (detail.picture) {

View File

@@ -41,7 +41,7 @@ export default {
},
getDetail() {
const {id} = this.$route.query
return id && this.instance.post("/api/breed/out/getAuditPage", null, {params: {id}}).then(res => {
return id && this.instance.post("/api/breed/out/getAuditPage", {id}).then(res => {
if (res?.data) {
const detail = res.data
return this.detail = {...detail}