增加新版本web页面
This commit is contained in:
20
web/src/store/modules/log.js
Normal file
20
web/src/store/modules/log.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import { queryList } from '@/api/log'
|
||||
|
||||
const actions = {
|
||||
queryList({ commit }, params) {
|
||||
return new Promise((resolve, reject) => {
|
||||
queryList(params).then(response => {
|
||||
const { data } = response
|
||||
resolve(data)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
actions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user