🎨 我的钱包接口变更

This commit is contained in:
ronger 2021-12-10 19:36:38 +08:00
parent c55a51d002
commit bbd8516ac0

View File

@ -1,4 +1,4 @@
export const BANK_ACCOUNT_API_PATH = '/api/admin/bank-account' export const BANK_ACCOUNT_API_PATH = '/api/wallet'
const getDefaultListData = () => { const getDefaultListData = () => {
return { return {
@ -38,28 +38,6 @@ export const mutations = {
} }
export const actions = { export const actions = {
// 获取消息列表
fetchList({commit}, params = {}) {
// 清空已有数据
commit('updateListData', getDefaultListData())
commit('updateListFetching', true)
let data = {
page: params.page || 1
}
return this.$axios
.$get(`${BANK_ACCOUNT_API_PATH}/drafts`, {
params: data
})
.then(response => {
commit('updateListFetching', false);
commit('updateListData', response);
})
.catch(error => {
console.log(error);
commit('updateListFetching', false);
});
},
// 获取账户详情 // 获取账户详情
fetchDetail({ commit }, params = {}) { fetchDetail({ commit }, params = {}) {
commit('updateDetailFetching', true) commit('updateDetailFetching', true)