/* * @Author: ch * @Date: 2022-03-22 18:28:52 * @LastEditors: ch * @LastEditTime: 2022-03-28 11:11:18 * @Description: file content */ import Vue from 'vue' import Vuex from 'vuex'; export default new Vuex.Store({ state : { token : uni.getStorageSync('tk') : '' }, mutations:{ SET_TOKEN (state, token = ''){ state.token = token; uni.setStorageSync('tk', token); } }, getters:{ } })