feature[Vuex]: auto import vuex modules(#1815)

This commit is contained in:
Estelle00
2019-04-04 14:37:01 +08:00
committed by 花裤衩
parent c923726464
commit e363c7a77b
5 changed files with 30 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
import Cookies from 'js-cookie'
import { getLanguage } from '@/lang/index'
const state = {
sidebar: {
@@ -6,7 +7,7 @@ const state = {
withoutAnimation: false
},
device: 'desktop',
language: Cookies.get('language') || 'en',
language: getLanguage(),
size: Cookies.get('size') || 'medium'
}