From 216f93f5b028c3aaec8fd69310ba69ef406bad20 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Wed, 3 Apr 2024 03:53:03 +0800 Subject: [PATCH] 1 --- src/api/wholesaler.js | 12 +++++++++++- src/views/wholesaler/Set.vue | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/api/wholesaler.js b/src/api/wholesaler.js index 7e423d1..c380cb0 100644 --- a/src/api/wholesaler.js +++ b/src/api/wholesaler.js @@ -1,7 +1,7 @@ import { axios } from '@/utils/request' const api = { - detail: '/wholesaler.set/info', + setDetail: '/wholesaler.set/info', setData: '/wholesaler.set/setData', applyStatus: '/wholesaler.apply/applyStatus', list: '/wholesaler.apply/list', @@ -18,6 +18,16 @@ export function audit(data) { data, }) } +/** + * @param {*} data + */ +export function setDetail(data) { + return axios({ + url: api.setDetail, + method: 'post', + data, + }) +} /** * @param {*} data */ diff --git a/src/views/wholesaler/Set.vue b/src/views/wholesaler/Set.vue index 5c3c189..d6a26e9 100644 --- a/src/views/wholesaler/Set.vue +++ b/src/views/wholesaler/Set.vue @@ -57,7 +57,7 @@ export default { // 获取当前详情记录 getDetail() { this.isLoading = true - Api.detail() + Api.setDetail() .then((result) => { // 当前记录 this.record = result.data.info