Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
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
刘怀志
pet-business-web
Commits
a91e47de
Commit
a91e47de
authored
Aug 18, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
d5a5f94e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
.env.development
.env.development
+1
-1
.env.staging
.env.staging
+3
-0
index.vue
src/components/ImageUpload/index.vue
+1
-1
No files found.
.env.development
View file @
a91e47de
...
@@ -8,7 +8,7 @@ ENV = 'development'
...
@@ -8,7 +8,7 @@ ENV = 'development'
VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = '/dev-api'
# 图片显示
# 图片显示
VUE_APP_TEST_API = 'http://1
27.0.0.1
:9000'
VUE_APP_TEST_API = 'http://1
14.67.241.140
:9000'
# A端前端地址
# A端前端地址
VUE_APP_WEB = 'http://localhost:80'
VUE_APP_WEB = 'http://localhost:80'
...
...
.env.staging
View file @
a91e47de
...
@@ -6,5 +6,8 @@ NODE_ENV = production
...
@@ -6,5 +6,8 @@ NODE_ENV = production
# 测试环境配置
# 测试环境配置
ENV = 'staging'
ENV = 'staging'
# 图片显示
VUE_APP_TEST_API = 'http://114.67.241.140:9000'
# 若依管理系统/测试环境
# 若依管理系统/测试环境
VUE_APP_BASE_API = '/stage-api'
VUE_APP_BASE_API = '/stage-api'
src/components/ImageUpload/index.vue
View file @
a91e47de
...
@@ -261,7 +261,7 @@ export default {
...
@@ -261,7 +261,7 @@ export default {
return
false
return
false
}
}
if
(
this
.
fileSize
)
{
if
(
this
.
fileSize
)
{
const
isLt
=
file
.
size
/
1024
/
1024
<
this
.
fileSize
const
isLt
=
file
.
size
/
1024
/
1024
<
=
this
.
fileSize
if
(
!
isLt
)
{
if
(
!
isLt
)
{
this
.
$modal
.
msgError
(
`上传图片大小不能超过
${
this
.
fileSize
}
MB!`
)
this
.
$modal
.
msgError
(
`上传图片大小不能超过
${
this
.
fileSize
}
MB!`
)
return
false
return
false
...
...
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