23 lines
410 B
JavaScript
23 lines
410 B
JavaScript
// api
|
|
import { GetCategory } from "@/api/info";;
|
|
const state = {};
|
|
const getters = {}
|
|
const mutations = {}
|
|
const actions = {
|
|
categoryAction() {
|
|
return new Promise((resolve, reject) => {
|
|
GetCategory().then(response => {
|
|
resolve(response.data)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
mutations,
|
|
actions
|
|
};
|
|
|