Explorar o código

静态知识图片限制1M内

zhouna %!s(int64=6) %!d(string=hai) anos
pai
achega
f6d4e76eb7
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/components/icss/MedicineInfoPg.vue

+ 8 - 0
src/components/icss/MedicineInfoPg.vue

@@ -53,6 +53,14 @@
             ImageExtend: {
               loading: true,
               name: 'upfile',
+              size:1,
+              sizeError: () => {
+                this.$message({
+                  showClose: true,
+                  message: '请上传 1M 以内的图片!',
+                  type: 'warning'
+                })
+              },
               action: config.urls.promptServer,
               response: (res) => {
                 return config.imgHost+res.url;