mirror of
https://github.com/veops/cmdb.git
synced 2025-11-08 07:56:09 +08:00
前后端全面升级
This commit is contained in:
7
cmdb-ui/src/core/bootstrap.js
vendored
7
cmdb-ui/src/core/bootstrap.js
vendored
@@ -12,12 +12,10 @@ import {
|
||||
DEFAULT_FIXED_SIDEMENU,
|
||||
DEFAULT_CONTENT_WIDTH_TYPE,
|
||||
DEFAULT_MULTI_TAB
|
||||
} from '@/store/mutation-types'
|
||||
import config from '@/config/defaultSettings'
|
||||
} from '@/store/global/mutation-types'
|
||||
import config from '@/config/setting'
|
||||
|
||||
export default function Initializer () {
|
||||
console.log(`API_URL: ${process.env.VUE_APP_API_BASE_URL}`)
|
||||
|
||||
store.commit('SET_SIDEBAR_TYPE', Vue.ls.get(SIDEBAR_TYPE, true))
|
||||
store.commit('TOGGLE_THEME', Vue.ls.get(DEFAULT_THEME, config.navTheme))
|
||||
store.commit('TOGGLE_LAYOUT_MODE', Vue.ls.get(DEFAULT_LAYOUT_MODE, config.layout))
|
||||
@@ -29,6 +27,5 @@ export default function Initializer () {
|
||||
store.commit('TOGGLE_COLOR', Vue.ls.get(DEFAULT_COLOR, config.primaryColor))
|
||||
store.commit('TOGGLE_MULTI_TAB', Vue.ls.get(DEFAULT_MULTI_TAB, config.multiTab))
|
||||
store.commit('SET_TOKEN', Vue.ls.get(ACCESS_TOKEN))
|
||||
|
||||
// last step
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user