Files
fe_service_ebtp_frontend/src/utils/DownloadUtils.ts
2022-03-10 14:24:13 +08:00

27 lines
716 B
TypeScript

/*
* @Author: liqiang
* @Date: 2020-12-14 10:13:59
* @LastEditTime: 2021-03-09 18:16:03
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \ebtp-cloud-frontend\src\utils\DownloadUtils.ts
*/
import { getUserToken } from "./session";
/**
* 下载接口路径(bid)
*/
export const downloadAttachmentPath = '/api/core-service-ebtp-updownload/v1/attachment/download/bid/';
/**
* 下载接口路径(oid)
*/
export const downloadAttachmentPathOId = '/api/core-service-ebtp-updownload/v1/attachment/download/oid/';
const authorization = '?Authorization';
/**
* 获取下载token
*/
export function getDownloadToken () {
return authorization + '=' + getUserToken();
}