|
@@ -2,13 +2,10 @@
|
|
|
import require from '@/api/require'
|
|
|
import { processReturn } from '@/utils/common';
|
|
|
import { SET_USER, SET_TOKEN, SET_LOADING } from './mutation-types';
|
|
|
-
|
|
|
const actions = {
|
|
|
async register({ commit }, payload) {
|
|
|
commit(SET_LOADING, true);
|
|
|
- const res = await axios.post('/auth/register', {
|
|
|
- ...payload,
|
|
|
- });
|
|
|
+ const res = await require.register({...payload})
|
|
|
const data = processReturn(res);
|
|
|
commit(SET_LOADING, false);
|
|
|
if (data) {
|