api/common.js
@@ -26,6 +26,25 @@ } /** * 获取腾讯云cos sts临时访问凭证 */ export function getSTSToken() { return http.request({ url: `${api.common}/lmk/file/sts`, method: Method.GET, }); } export function getPreviewUrl(params){ return http.request({ url: `${api.common}/lmk/file/preview`, method: Method.POST, data:params }); } /** * 文件上传地址 * @type {string} */