Commit 5a5f70e4555c2bbc8aaf903af662bd253053873b
Merge branch 'fix/share-401' into 'main_dev'
fix: 修复分享401问题 See merge request yunteng/thingskit-view!196
Showing
1 changed file
with
2 additions
and
1 deletions
1 | import { defHttp } from '@/utils/external/http/axios' | 1 | import { defHttp } from '@/utils/external/http/axios' |
2 | import { ConfigurationItemType, DictItem, OrganizationListItem, UploadResponse } from './model' | 2 | import { ConfigurationItemType, DictItem, OrganizationListItem, UploadResponse } from './model' |
3 | import { PaginationResult } from '/#/external/axios' | 3 | import { PaginationResult } from '/#/external/axios' |
4 | +import { isShareMode } from '@/views/share/hook' | ||
4 | 5 | ||
5 | enum Api { | 6 | enum Api { |
6 | GET_DICT = '/dict_item', | 7 | GET_DICT = '/dict_item', |
@@ -47,7 +48,7 @@ export const getAreaList = (data: object) => { | @@ -47,7 +48,7 @@ export const getAreaList = (data: object) => { | ||
47 | return defHttp.post<any>({ | 48 | return defHttp.post<any>({ |
48 | url: Api.AREALIST, | 49 | url: Api.AREALIST, |
49 | data | 50 | data |
50 | - }) | 51 | + },{withShareToken:isShareMode()}) |
51 | } | 52 | } |
52 | 53 | ||
53 | //获取企业定制 | 54 | //获取企业定制 |