Commit 78eb0585 by 张权

上传文件大小限制

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