mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
9 lines
196 B
JavaScript
9 lines
196 B
JavaScript
export const state = {
|
|
mode: localStorage.getItem('mode') ? localStorage.getItem('mode') : 'debug'
|
|
}
|
|
|
|
export function setMode (mode) {
|
|
state.mode = mode
|
|
localStorage.setItem('mode', mode)
|
|
}
|