mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-30 13:11:08 -04:00
init crater
This commit is contained in:
23
resources/assets/js/store/modules/auth/index.js
Normal file
23
resources/assets/js/store/modules/auth/index.js
Normal file
@ -0,0 +1,23 @@
|
||||
import mutations from './mutations'
|
||||
import * as actions from './actions'
|
||||
import * as getters from './getters'
|
||||
import Ls from '@/services/ls'
|
||||
|
||||
const initialState = {
|
||||
token: Ls.get('auth.token'),
|
||||
status: '',
|
||||
validateTokenError: '',
|
||||
validateTokenSuccess: ''
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
|
||||
state: initialState,
|
||||
|
||||
getters: getters,
|
||||
|
||||
actions: actions,
|
||||
|
||||
mutations: mutations
|
||||
}
|
||||
Reference in New Issue
Block a user