Commit 78eb0585 by 张权

上传文件大小限制

1 parent 37631e0c
......@@ -2028,7 +2028,7 @@ export default {
}
.app {
background: #f4f5fa;
padding: 0px 20px 20px 40px;
padding: 0px 0 20px 0;
position: absolute;
box-sizing: border-box;
width: 100%;
......
......@@ -954,7 +954,7 @@ export default {
<style lang="scss" scoped>
.app {
background: #f4f5fa;
padding: 0px 20px 20px 40px;
padding: 0px 0 20px 0;
position: absolute;
box-sizing: border-box;
width: 100%;
......
......@@ -139,7 +139,7 @@ export default {
<style lang="scss" scoped>
.app {
background: #f4f5fa;
padding: 0px 20px 20px 40px;
padding: 0px 0 20px 0;
position: absolute;
box-sizing: border-box;
width: 100%;
......
......@@ -108,8 +108,8 @@ export default {
return reject(false)
}
const size = e.size / 1024 / 1024
if (size > 9) {
this.$message.error('上传文件不可超过9M')
if (size > 200) {
this.$message.error('上传文件不可超过200M')
return reject(false)
}
return resolve(true)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!