file.js 725 Bytes
/*
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-05-16 13:36:44
 */

let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
export function uploadUrl () {
    return process.env.VUE_APP_BASE_API + SERVER.SERVERAPI + '/file/upload'
}

/**
 * @description: 上传单个文件
 * @param {*} data
 * @author: renchao
 */
export function upload (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/file/upload',
    method: 'post',
    data
  })
}

/**
 * @description: 上传电子签名
 * @param {*} data
 * @author: renchao
 */
 export function uploaddzqm (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/system/dzqm',
    method: 'post',
    data
  })
}