|
|
@@ -47,10 +47,15 @@
|
|
|
methods: {
|
|
|
update (e) {
|
|
|
let file = e.target.files[0]
|
|
|
- if (this.NopassThree) {
|
|
|
- console.log(file.size)
|
|
|
+ if (!this.NopassThree) {
|
|
|
+// console.log(file.size)
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
- this.$message.error('上传文件不得超过3M')
|
|
|
+ if (this.isMobile) {
|
|
|
+ this.$emit('remindAction', '上传文件不得超过3M')
|
|
|
+ } else {
|
|
|
+ this.$message.error('上传文件不得超过3M')
|
|
|
+ }
|
|
|
+// this.baseUtils.setMessage(this, '上传文件不得超过3M', this.isMobile, false)
|
|
|
return false
|
|
|
}
|
|
|
}
|