提交 4095db0a authored 作者: 钟是志's avatar 钟是志

优化代码, 上传文件接口不再拼接token

上级 54637ac0
...@@ -71,6 +71,7 @@ import WangEditor from '@/webPublic/zyd_public/WangEditor/OnstopWang'; ...@@ -71,6 +71,7 @@ import WangEditor from '@/webPublic/zyd_public/WangEditor/OnstopWang';
import { noPrefixRequest, uaaRequest } from '@/webPublic/one_stop_public/utils/request'; import { noPrefixRequest, uaaRequest } from '@/webPublic/one_stop_public/utils/request';
import RangePickerDiy, { getMomentArr } from '@/webPublic/one_stop_public/tableCompon/Split_Index/RangePickerDiy'; import RangePickerDiy, { getMomentArr } from '@/webPublic/one_stop_public/tableCompon/Split_Index/RangePickerDiy';
import getActiveJson from '@/webPublic/one_stop_public/Table/getActiveJson'; import getActiveJson from '@/webPublic/one_stop_public/Table/getActiveJson';
import getOneStopUploadUrl from '@/webPublic/one_stop_public/Base16/getOneStopUploadUrl';
const { const {
MonthPicker, MonthPicker,
...@@ -173,7 +174,7 @@ export default class TableCom extends Component { ...@@ -173,7 +174,7 @@ export default class TableCom extends Component {
*/ */
file = { file = {
name: 'file', name: 'file',
action: queryApiActionPath() + '/upload', action: getOneStopUploadUrl(),
onChange: (info) => { onChange: (info) => {
if (info.file.status !== 'uploading') { if (info.file.status !== 'uploading') {
this.setState({ this.setState({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论