Commit d774ac2f authored by 罗超's avatar 罗超

修改文件上传内容

parent 068e6df6
export const domainManager = () => { export const domainManager = () => {
const locationName = window.location.hostname const locationName = window.location.hostname
const obj = { const obj = {
domainUrl: locationName.indexOf('oytour') !== -1 ? "http://reborn.oytour.com/api/common/post" : "http://192.168.10.214/api/common/post", domainUrl: locationName.indexOf('oytour') !== -1 ? "https://reborn.oytour.com/api/common/post" : "http://192.168.10.214/api/common/post",
//上传站点 //上传站点
UploadUrl: locationName.indexOf('oytour') !== -1 ? "http://upload.oytour.com" : "http://192.168.5.46:8120", UploadUrl: locationName.indexOf('oytour') !== -1 ? "https://upload.oytour.com" : "http://192.168.5.46:8120",
//文件站点 //文件站点
ViittoFileUrl: locationName.indexOf('oytour') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.10.214:8130', ViittoFileUrl: locationName.indexOf('oytour') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.10.214:8130',
// 通知erp // 通知erp
......
import { domainManager } from '@/utils/domainManager' import { domainManager } from "../domainManager";
class AliyunUpload { class AliyunUpload {
static UploadAsync = async (file:any,name:string)=>{ static UploadAsync = async (file:any,name:string)=>{
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment