seeyon-plugin-utils
v1.0.5
Published
<!-- * @Author: XunL * @Description: --> ### 文件预览 使用方法 ``` import { previewFile } from 'seeyon-plugin-utils' previewFile(fileId,axiosInstance,host,api) ``` #### 参数说明 + fileId(String) 必填项 要查看的文件ID + axiosInstance(axios) 必填项 用于调用接口的axios实例。如果项目使用axios.c
Downloads
44
Readme
文件预览
使用方法
import { previewFile } from 'seeyon-plugin-utils'
previewFile(fileId,axiosInstance,host,api)
参数说明
- fileId(String) 必填项 要查看的文件ID
- axiosInstance(axios) 必填项 用于调用接口的axios实例。如果项目使用axios.create创建的axios,需要配置。默认值为axios。
- host(String) 可选项 服务的服务器的地址,默认为空
- api (String) 可选项 服务的ip地址。