mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-23 09:50:18 +08:00
Merge 7f8a07bd75acaab87e1bffccd1d959b3f4dce024 into 10a7613e6e94f80041712201ef709d47d76c4b80
This commit is contained in:
commit
2b2299c3f9
@ -6,7 +6,7 @@ import {getLocalSetting} from '@/utils/themeUtil'
|
|||||||
import deepClone from 'lodash.clonedeep'
|
import deepClone from 'lodash.clonedeep'
|
||||||
|
|
||||||
const localSetting = getLocalSetting(true)
|
const localSetting = getLocalSetting(true)
|
||||||
const customTitlesStr = sessionStorage.getItem(process.env.VUE_APP_TBAS_TITLES_KEY)
|
const customTitlesStr = sessionStorage.getItem(process.env.VUE_APP_TABS_TITLES_KEY)
|
||||||
const customTitles = (customTitlesStr && JSON.parse(customTitlesStr)) || []
|
const customTitles = (customTitlesStr && JSON.parse(customTitlesStr)) || []
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -107,7 +107,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
state.customTitles.push({path, title})
|
state.customTitles.push({path, title})
|
||||||
}
|
}
|
||||||
sessionStorage.setItem(process.env.VUE_APP_TBAS_TITLES_KEY, JSON.stringify(state.customTitles))
|
sessionStorage.setItem(process.env.VUE_APP_TABS_TITLES_KEY, JSON.stringify(state.customTitles))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user