You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
424 B
26 lines
424 B
/*
|
|
* @Author: ch
|
|
* @Date: 2022-03-22 18:28:52
|
|
* @LastEditors: ch
|
|
* @LastEditTime: 2022-03-29 11:08:32
|
|
* @Description: file content
|
|
*/
|
|
import Vue from 'vue'
|
|
import Vuex from 'vuex';
|
|
|
|
Vue.use(Vuex)
|
|
|
|
export default new Vuex.Store({
|
|
state : {
|
|
token : uni.getStorageSync('tk') || ''
|
|
},
|
|
mutations:{
|
|
SET_TOKEN (state, token = ''){
|
|
state.token = token;
|
|
uni.setStorageSync('tk', token);
|
|
}
|
|
},
|
|
getters:{
|
|
|
|
}
|
|
}) |