|
@@ -34,15 +34,6 @@ const actions = {
|
|
|
const res = await this.$axios.$delete(`${api.dockInfo}/${payload}`);
|
|
|
return res;
|
|
|
},
|
|
|
- async login({ commit }, payload) {
|
|
|
- const res = await this.$axios.$post(`${api.dockInfo}/login`, payload);
|
|
|
- if (res.errcode === 0) {
|
|
|
- localStorage.setItem('token', res.data);
|
|
|
- const user = jwt.decode(res.data);
|
|
|
- commit('setUser', user, { root: true });
|
|
|
- }
|
|
|
- return res;
|
|
|
- },
|
|
|
};
|
|
|
export default {
|
|
|
namespaced: true,
|