Commit a91e47de authored by 陈明豪's avatar 陈明豪

bug修改

parent d5a5f94e
...@@ -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://127.0.0.1:9000' VUE_APP_TEST_API = 'http://114.67.241.140:9000'
# A端前端地址 # A端前端地址
VUE_APP_WEB = 'http://localhost:80' VUE_APP_WEB = 'http://localhost:80'
......
...@@ -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'
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment