提交 86f89b22 编写于 作者: zhujiamin's avatar zhujiamin

feat: 修改文件上传路径

上级 8982b5fc
......@@ -244,7 +244,7 @@
* @memberof DiskFileUpload
*/
public getAction() {
return `${(window as any).Environment.UploadFile}`+ '?ownertype=' + this.name + '&ownerid=' + JSON.parse(this.data).srfkey;
return Environment.BaseUrl + `${(window as any).Environment.UploadFile}`+ '?ownertype=' + this.name + '&ownerid=' + JSON.parse(this.data).srfkey;
}
/**
* 设置files
......@@ -272,7 +272,7 @@
* @memberof AppFileUpload
*/
private dataProcess(): void {
let _url = `${(window as any).Environment.UploadFile}`;
let _url = `${Environment.BaseUrl}${Environment.UploadFile}`;
if (this.upload_params.length > 0 ) {
_url +='?';
this.upload_params.forEach((item:any,i:any)=>{
......@@ -283,7 +283,7 @@
})
}
this.files.forEach((file: any) => {
let url = `${(window as any).Environment.ExportFile}/${file.id}`;
let url = `${Environment.BaseUrl}${Environment.ExportFile}/${file.id}`;
if (this.export_params.length > 0) {
url +='?';
this.export_params.forEach((item:any,i:any)=>{
......
......@@ -72,7 +72,7 @@ export default class AppRichTextEditor extends Vue {
* @type {string}
* @memberof AppRichTextEditor
*/
public uploadUrl = Environment.UploadFile;
public uploadUrl = Environment.BaseUrl + Environment.UploadFile;
/**
* 下载路径
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册