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
陈智峰
jinfa-platform
Commits
d9e15187
Commit
d9e15187
authored
Feb 16, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理商品图片上传翻译异常
parent
c3a6e1cd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
commodity.ts
src/locales/en-US/commodity.ts
+2
-0
commodity.ts
src/locales/ko-KR/commodity.ts
+2
-0
commodity.ts
src/locales/zh-CN/commodity.ts
+2
-0
addProducts.tsx
src/pages/commodity/products/addProducts.tsx
+2
-2
No files found.
src/locales/en-US/commodity.ts
View file @
d9e15187
...
...
@@ -196,6 +196,8 @@ export default {
'commodity.products.addProducts.onSave.error.2'
:
'Please complete other product information! '
,
'commodity.products.addProducts.onSave.error.3'
:
'Commodity price is required! '
,
'commodity.products.addProducts.onSave.error.4'
:
'Commodity points are required! '
,
'commodity.products.addProducts.onSave.error.5'
:
'Please upload the product picture again!'
,
'commodity.products.addProducts.onSave.error.6'
:
'Please upload the product picture!'
,
'commodity.products.addProducts.back'
:
'Return'
,
'commodity.products.addProducts.title.1'
:
'Edit product'
,
'commodity.products.addProducts.title.2'
:
'New product'
,
...
...
src/locales/ko-KR/commodity.ts
View file @
d9e15187
...
...
@@ -197,6 +197,8 @@ export default {
'commodity.products.addProducts.onSave.error.2'
:
'상품 기타 정보를 보완해 주세요!'
,
'commodity.products.addProducts.onSave.error.3'
:
'상품 가격은 필수입니다!'
,
'commodity.products.addProducts.onSave.error.4'
:
'상품 포인트는 필수입니다!'
,
'commodity.products.addProducts.onSave.error.5'
:
'상품 사진 다시 올려주세요!'
,
'commodity.products.addProducts.onSave.error.6'
:
'상품 사진 올려주세요!'
,
'commodity.products.addProducts.back'
:
'되돌아오다'
,
'commodity.products.addProducts.title.1'
:
'상품 편집'
,
'commodity.products.addProducts.title.2'
:
'신제품'
,
...
...
src/locales/zh-CN/commodity.ts
View file @
d9e15187
...
...
@@ -197,6 +197,8 @@ export default {
'commodity.products.addProducts.onSave.error.2'
:
'请完善商品其他信息!'
,
'commodity.products.addProducts.onSave.error.3'
:
'商品价格为必填项!'
,
'commodity.products.addProducts.onSave.error.4'
:
'商品积分为必填项!'
,
'commodity.products.addProducts.onSave.error.5'
:
'请重新上传商品图片!'
,
'commodity.products.addProducts.onSave.error.6'
:
'请上传商品图片!'
,
'commodity.products.addProducts.back'
:
'返回'
,
'commodity.products.addProducts.title.1'
:
'编辑商品'
,
'commodity.products.addProducts.title.2'
:
'新建商品'
,
...
...
src/pages/commodity/products/addProducts.tsx
View file @
d9e15187
...
...
@@ -272,7 +272,7 @@ const AddProducts: React.FC<{}> = (props) => {
_params
.
unitPriceAndPicList
=
priceAttributeParams
.
map
((
item
,
index
)
=>
{
const
pic
=
productInfoByEdit
.
unitPriceAndPicList
[
index
]?.
commodityPic
if
(
!
pic
)
{
throw
new
Error
(
'请重新上传商品图片!'
)
throw
new
Error
(
intl
.
formatMessage
({
id
:
'commodity.products.addProducts.onSave.error.5'
})
)
}
return
{
id
:
item
.
id
,
...
...
@@ -285,7 +285,7 @@ const AddProducts: React.FC<{}> = (props) => {
})
}
}
else
{
throw
new
Error
(
'请上传商品图片!'
)
throw
new
Error
(
intl
.
formatMessage
({
id
:
'commodity.products.addProducts.onSave.error.6'
})
)
}
}
catch
(
e
)
{
return
e
...
...
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