完善生产查询与登录权限配置

This commit is contained in:
2026-09-03 19:56:19 +08:00
parent 793f140a45
commit 02c8fb7021
438 changed files with 1595 additions and 573 deletions
+16
View File
@@ -0,0 +1,16 @@
const THEME_MODE_STORAGE_KEY = 'scanapp_theme_mode'
export function getAppThemeMode() {
return uni.getStorageSync(THEME_MODE_STORAGE_KEY) === 'dark' ? 'dark' : 'light'
}
export function applyAppTheme(mode) {
const themeMode = mode === 'dark' ? 'dark' : 'light'
uni.setStorageSync(THEME_MODE_STORAGE_KEY, themeMode)
uni.setNavigationBarColor({
frontColor: themeMode === 'dark' ? '#ffffff' : '#000000',
backgroundColor: themeMode === 'dark' ? '#151923' : '#ffffff'
})
uni.$emit('scanapp-theme-change', themeMode)
return themeMode
}