3.10 工程代码同步master

This commit is contained in:
jl-zhoujl2
2022-03-10 14:24:13 +08:00
parent 41ab55a4ac
commit 62f6b07ee2
914 changed files with 143121 additions and 29110 deletions

View File

@ -1,12 +1,14 @@
import { isEmpty } from '@/utils/CommonUtils';
/*
* @Author: liqiang
* @Date: 2020-12-14 10:13:59
* @LastEditTime: 2020-12-30 16:54:33
* @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)
*/
@ -15,17 +17,11 @@ export const downloadAttachmentPath = '/api/core-service-ebtp-updownload/v1/atta
* 下载接口路径(oid)
*/
export const downloadAttachmentPathOId = '/api/core-service-ebtp-updownload/v1/attachment/download/oid/';
const authorization = '?Authorization';
/**
* 获取上传内容数据
* @param data
* 获取下载token
*/
export function getUploadContent(data:any){
if(isEmpty(data)){
return data;
}
let file = data.file;
return {
id:file.response.oid,
name:file.name
}
export function getDownloadToken () {
return authorization + '=' + getUserToken();
}