Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
b666f22f
Commit
b666f22f
authored
Aug 09, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 创建店铺上传宣传画册文件格式限制问题修复
parent
f19b7121
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
index.tsx
src/pages/channel/channelInfo/index.tsx
+1
-1
index.tsx
src/pages/shop/shopInfo/index.tsx
+2
-1
No files found.
src/pages/channel/channelInfo/index.tsx
View file @
b666f22f
...
...
@@ -445,7 +445,7 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
action=
"/api/file/file/upload"
data=
{
{
fileType
:
UPLOAD_TYPE
}
}
showUploadList=
{
false
}
accept=
'.pdf'
//
accept='.pdf'
beforeUpload=
{
beforeDocUpload
}
onChange=
{
handleChange
}
>
...
...
src/pages/shop/shopInfo/index.tsx
View file @
b666f22f
...
...
@@ -51,6 +51,7 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
if
(
!
isLt50M
)
{
message
.
error
(
'上传文件大小不超过 50M!'
);
}
if
(
!
isPDF
)
{
message
.
error
(
'请上传pdf格式文件'
);
}
...
...
@@ -433,7 +434,7 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
action=
"/api/file/file/upload"
data=
{
{
fileType
:
UPLOAD_TYPE
}
}
showUploadList=
{
false
}
accept=
'.pdf'
//
accept='.pdf'
beforeUpload=
{
beforeDocUpload
}
onChange=
{
handleChange
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment