初始化仓库

This commit is contained in:
wangxiaowei
2026-04-14 16:54:04 +08:00
commit 967c25b397
553 changed files with 106514 additions and 0 deletions

11
store/getters.js Normal file
View File

@ -0,0 +1,11 @@
export default {
userInfo: (state) => state.app.userInfo || {},
token: (state) => state.app.token,
isLogin: (state) => !!state.app.token,
cartNum: (state) => state.app.cartNum,
inviteCode: (state) => state.app.userInfo.distribution_code || '',
appConfig: (state) => state.app.config,
site_statistic: (state) => state.app.config.site_statistic,
sysInfo: (state) => state.app.sysInfo,
cityInfo: (state) => state.city.cityInfo
}