action type
This commit is contained in:
@@ -45,10 +45,10 @@ export default {
|
||||
actions: {
|
||||
async queryUserInfo({ state, commit }) {
|
||||
const { token } = JSON.parse(sessionStorage.getItem('KEY_ACCOUNT'))
|
||||
const { userId, type = 0, op } = state
|
||||
const { userId } = state
|
||||
const pageSize = 20
|
||||
const pageIndex = 1
|
||||
const result = await axios.post('admin/actions', { query: { userId, type, op }, option: { pageSize, pageIndex } }, { headers: { token } })
|
||||
const result = await axios.post('admin/actions', { query: { userId }, option: { pageSize, pageIndex } }, { headers: { token } })
|
||||
const arr = result.data && result.data.data || []
|
||||
commit('setUserList', arr)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user