Commit e0bf3148 authored by Sixiang_Zzb's avatar Sixiang_Zzb

上传模块接口修改

parent ab87e5cb
...@@ -95,11 +95,12 @@ const Users = (props: any) => { ...@@ -95,11 +95,12 @@ const Users = (props: any) => {
// 上传的模块 // 上传的模块
const propsUpload = { const propsUpload = {
name: 'file', name: 'file',
action: () => { // action: () => {
// return 'http://47.74.233.180:8651/tos/excel/upload?userId=' + id; // // return 'http://47.74.233.180:8651/tos/excel/upload?userId=' + id;
// return 'http://192.168.1.28:8651/tos/excel/upload?userId=' + id; // // return 'http://192.168.1.28:8651/tos/excel/upload?userId=' + id;
return '/tos/excel/upload?userId=' + id; // return '/tos/excel/upload?userId=' + id;
}, // },
action: '/tos/excel/upload?userId=' + id,
beforeUpload: (file: any) => { beforeUpload: (file: any) => {
if (permissionArr.indexOf('4') < 0) { if (permissionArr.indexOf('4') < 0) {
message.error('No permissions'); message.error('No permissions');
......
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