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.
yanzong_qianduan/core/bootstrap.js

21 lines
722 B

4 months ago
import store from '@/store'
import storage from '@/utils/storage'
import Config from '@/core/config'
import platform from '@/core/platform'
import { ACCESS_TOKEN, USER_ID, REFEREE_ID, APP_THEME } from '@/store/mutation-types'
export default function YoShop2() {
// 当前的商城ID
store.commit('SET_STORE_ID', Config.getStoreId())
// 当前运行的终端
store.commit('SET_PLATFORM', platform)
// 用户认证token
store.commit('SET_TOKEN', storage.get(ACCESS_TOKEN))
// 当前用户ID
store.commit('SET_USER_ID', storage.get(USER_ID))
// 当前推荐人ID
store.commit('SET_REFEREE_ID', storage.get(REFEREE_ID))
// 全局自定义主题
store.commit('SET_APP_THEME', storage.get(APP_THEME))
}