提交 02c00264 编写于 作者: fxy060608's avatar fxy060608

chore: download filename

上级 4c248cef
import { TEMP_PATH_BASE } from '../service/api/constants'
export function getFileName(path: string) {
const array = path.split('/')
return array[array.length - 1]
......@@ -54,7 +56,7 @@ function download(url: string): Promise<string> {
.createDownload(
url,
{
filename: '_doc/uniapp_temp/download/',
filename: `${TEMP_PATH_BASE}/download/`,
},
function (d, status) {
if (status === 200) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册