html里面使用

{{($loginAuth.getUser()||{}).userId}}

$loginAuth.getUser() 完整结果

 {
  "userId": "账号ID",
  "roleId": [
    "角色Id"
  ],
  "depId": [],
  "pushName": "发布名称",
  "jobId": [],
  "sysId": [],
  "areaCode": [],
  "developer": 1,
  "mergeUserId": [],
  "headName": "开发",
  "headIcon": "头像"
}

开发者

($store.getters.user||{}).developer===1
文档更新时间: 2022-11-14 07:21   作者:admin