Browse Source

fix: 添加资源库上传资源失败的方法

wu.jian2 1 year ago
parent
commit
f0891a88e2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      data-room-ui/packages/SourceList/index.vue

+ 6 - 0
data-room-ui/packages/SourceList/index.vue

@@ -216,6 +216,12 @@ export default {
     this.getDataList()
     this.getDataList()
   },
   },
   methods: {
   methods: {
+    uploadError () {
+      this.$message({
+        type: 'error',
+        message: '上传失败'
+      })
+    },
     uploadSuccess (response, file, fileList) {
     uploadSuccess (response, file, fileList) {
       if (response.code === 200) {
       if (response.code === 200) {
         this.$message({
         this.$message({