|
@ -1,10 +1,8 @@ |
|
|
import request from './httpRequest3.js' |
|
|
import request from './httpRequest3.js' |
|
|
import storage from '../common/utils/storage.js' |
|
|
import storage from '../common/utils/storage.js' |
|
|
import config from '../static/config.js' |
|
|
|
|
|
// const baseApi = "/api/admin-api"
|
|
|
|
|
|
//公司地址
|
|
|
//公司地址
|
|
|
// 本地地址
|
|
|
// 本地地址
|
|
|
const baseApi = "" |
|
|
const baseApi = '' |
|
|
/** |
|
|
/** |
|
|
* 获取验证码 |
|
|
* 获取验证码 |
|
|
* @param {*} |
|
|
* @param {*} |
|
@ -3811,7 +3809,7 @@ export function getFileList(tableName, tableId) { |
|
|
*/ |
|
|
*/ |
|
|
export function uploadFile(tableName, tableId, filePath, callBack) { |
|
|
export function uploadFile(tableName, tableId, filePath, callBack) { |
|
|
var token = storage.getStorage(storage.constant.token) |
|
|
var token = storage.getStorage(storage.constant.token) |
|
|
var url = config.request_url + baseApi |
|
|
var url = import.meta.env.VITE_BASE_URL + baseApi |
|
|
uni.uploadFile({ |
|
|
uni.uploadFile({ |
|
|
url: url + "/infra/file/upload?tableName=" + tableName + "&tableId=" + tableId, |
|
|
url: url + "/infra/file/upload?tableName=" + tableName + "&tableId=" + tableId, |
|
|
filePath: filePath, |
|
|
filePath: filePath, |
|
|