chore: remove i18n (#1828)

This commit is contained in:
花裤衩
2019-05-05 16:49:40 +08:00
committed by GitHub
parent e8e6c7e79c
commit 00a19db299
63 changed files with 317 additions and 1440 deletions

View File

@@ -1,6 +1,5 @@
const getters = {
sidebar: state => state.app.sidebar,
language: state => state.app.language,
size: state => state.app.size,
device: state => state.app.device,
visitedViews: state => state.tagsView.visitedViews,

View File

@@ -1,5 +1,4 @@
import Cookies from 'js-cookie'
import { getLanguage } from '@/lang/index'
const state = {
sidebar: {
@@ -7,7 +6,6 @@ const state = {
withoutAnimation: false
},
device: 'desktop',
language: getLanguage(),
size: Cookies.get('size') || 'medium'
}
@@ -29,10 +27,6 @@ const mutations = {
TOGGLE_DEVICE: (state, device) => {
state.device = device
},
SET_LANGUAGE: (state, language) => {
state.language = language
Cookies.set('language', language)
},
SET_SIZE: (state, size) => {
state.size = size
Cookies.set('size', size)
@@ -49,9 +43,6 @@ const actions = {
toggleDevice({ commit }, device) {
commit('TOGGLE_DEVICE', device)
},
setLanguage({ commit }, language) {
commit('SET_LANGUAGE', language)
},
setSize({ commit }, size) {
commit('SET_SIZE', size)
}

View File

@@ -97,7 +97,7 @@ const actions = {
})
},
// Dynamically modify permissions
// dynamically modify permissions
changeRoles({ commit, dispatch }, role) {
return new Promise(async resolve => {
const token = role + '-token'