mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-26 00:34:01 +00:00
id 追加
This commit is contained in:
parent
4d22ddaf65
commit
de34998bd5
|
@ -2,6 +2,9 @@ import { MutationTree } from 'vuex';
|
||||||
import { AccountStateInterface } from './state';
|
import { AccountStateInterface } from './state';
|
||||||
|
|
||||||
const mutation: MutationTree<AccountStateInterface> = {
|
const mutation: MutationTree<AccountStateInterface> = {
|
||||||
|
setId(state: AccountStateInterface, id: string) {
|
||||||
|
state.id = id;
|
||||||
|
},
|
||||||
setToken(state: AccountStateInterface, token: string) {
|
setToken(state: AccountStateInterface, token: string) {
|
||||||
state.token = token;
|
state.token = token;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user