module-menu 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -115,12 +115,9 @@ const ModuleUser = ({ stash }) => {
115
115
  // 切换租户改缓存、调接口、刷界面
116
116
  const handleChangeTenant = (e) => {
117
117
  let token = getStore({ name: 'access_token' });
118
- Axios(
119
- 'get',
120
- `/admin-api/system/auth/setRedisTokenOfTenant?token=${token}&tenantId=${e}`,
121
- '',
122
- {},
123
- )
118
+ Axios('post', `/admin-api/system/auth/setRedisTokenOfTenant`, '', {
119
+ data: { token, tenantId: e },
120
+ })
124
121
  .then((res) => {
125
122
  if (res.data.code === 0) {
126
123
  console.log('接口调用成功');