master
Joe 1 year ago
parent 77b4e74553
commit 9ebf2f02f7

@ -87,8 +87,8 @@ export default defineConfig({
plugins: ['duration'], plugins: ['duration'],
}, },
define: { define: {
// 'process.env.BASE_URL': 'http://xft-cms.51jingcheng.com/api', // 接口服务器地址 'process.env.BASE_URL': 'http://xft-cms.51jingcheng.com/api', // 接口服务器地址
'process.env.BASE_URL': 'http://cms.gjxfc.com/api', // 接口服务器地址 // 'process.env.BASE_URL': 'http://cms.gjxfc.com/api', // 接口服务器地址
}, },
/** /**
* @name * @name

@ -149,7 +149,7 @@ const Detail: React.FC<any> = () => {
} }
}, },
}} }}
action={'/oss/imgUpload'} action={process.env.BASE_URL + '/oss/imgUpload'}
onChange={(a: any) => { onChange={(a: any) => {
props?.fieldProps.onChange(a.fileList); props?.fieldProps.onChange(a.fileList);
}} }}
@ -440,7 +440,7 @@ const Detail: React.FC<any> = () => {
} }
}, },
}} }}
action={'/oss/imgUpload'} action={process.env.BASE_URL + '/oss/imgUpload'}
onChange={(a: any) => { onChange={(a: any) => {
props?.fieldProps.onChange(a.fileList); props?.fieldProps.onChange(a.fileList);
}} }}

@ -132,7 +132,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
authorization: localStorage.getItem('token') ?? '', authorization: localStorage.getItem('token') ?? '',
}} }}
maxCount={1} maxCount={1}
action='/oss/imgUpload' action={process.env.BASE_URL + '/oss/imgUpload'}
listType="picture-card" listType="picture-card"
fileList={fileList} fileList={fileList}
onChange={onChange} onChange={onChange}

Loading…
Cancel
Save