mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-20 10:16:39 +08:00
11 lines
308 B
JavaScript
11 lines
308 B
JavaScript
import Storage from "good-storage";
|
|
|
|
const MOBILE_THEME = process.env.VUE_APP_KEY_PREFIX + "MOBILE_THEME"
|
|
|
|
export function getMobileTheme() {
|
|
return Storage.get(MOBILE_THEME) ? Storage.get(MOBILE_THEME) : 'light'
|
|
}
|
|
|
|
export function setMobileTheme(theme) {
|
|
Storage.set(MOBILE_THEME, theme)
|
|
} |