Skip to content

多租户环境下,导入无法获取租户id #1647

Closed
@yanchenchen

Description

@yanchenchen
版本号:

v2.2.1

问题描述:

在线生成代码前后端部署后进行导入操作,无法获取到租户id
导出可以获取到租户id

截图&代码:

导入截图:
导入2

导出截图:

导出2

友情提示: 未按格式要求发帖,会直接删掉。

Activity

tygithub1

tygithub1 commented on Sep 3, 2020

@tygithub1

修改前端:jeecglistmixin.js
修改import import { ACCESS_TOKEN, TENANT_ID } from "@/store/mutation-types"
然后
image
原来这个tokenheader在data中定义 当然,你也可以在data中直接定义写上tokenHeader:{'X-Access-Token': Vue.ls.get(ACCESS_TOKEN),'tenant_id':Vue.ls.get(TENANT_ID)}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhangdaiscott@yanchenchen@tygithub1

        Issue actions

          多租户环境下,导入无法获取租户id · Issue #1647 · jeecgboot/JeecgBoot