变更归档查询完成
This commit is contained in:
@@ -234,6 +234,17 @@ export function getTimeRangeStamp(timeRange: string){
|
||||
}
|
||||
}
|
||||
|
||||
// 下载文件
|
||||
export function downloadFileFun(url: string, name: string) {
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.target = '_blank';
|
||||
a.download = name;
|
||||
document.body.appendChild(a)
|
||||
a.click()
|
||||
document.body.removeChild(a);
|
||||
}
|
||||
|
||||
// 获取 token
|
||||
export const getToken = () => {
|
||||
return localStorage.getItem('token');
|
||||
|
||||
Reference in New Issue
Block a user