mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
- English locale defaults; remove duplicate zh-only locale files - SM2 utility sharing with the web client where applicable
11 lines
352 B
TypeScript
11 lines
352 B
TypeScript
/**
|
|
* Tabbar state, add storageSync to ensure correct tabbar page when refreshing browser
|
|
* Use reactive simple state instead of pinia global state
|
|
*/
|
|
export const tabbarStore = reactive({
|
|
curIdx: uni.getStorageSync('app-tabbar-index') || 0,
|
|
setCurIdx(idx: number) {
|
|
this.curIdx = idx
|
|
uni.setStorageSync('app-tabbar-index', idx)
|
|
},
|
|
})
|