Ver Fonte

fix bug

scorpio há 2 anos atrás
pai
commit
9c7829e05f
2 ficheiros alterados com 6 adições e 3 exclusões
  1. 4 1
      src/components/upload-file/index.vue
  2. 2 2
      vite.config.js

+ 4 - 1
src/components/upload-file/index.vue

@@ -195,8 +195,11 @@ export default {
             this.drawer = false
             this.resultList.length = 0
             this.fileList.length = 0
-          }, 3000)
+          }, 500)
         } else {
+          this.drawer = false
+          this.resultList.length = 0
+          this.fileList.length = 0
           this.$message.error(res.msg)
         }
       })

+ 2 - 2
vite.config.js

@@ -57,8 +57,8 @@ export default defineConfig({
     proxy: {
       '/api': {
         // 正式环境地址
-        // target: 'https://dev.wutongresearch.club/api',
-        target: 'https://prod.wutongshucloud.com/api',
+        target: 'https://dev.wutongresearch.club/api',
+        // target: 'https://prod.wutongshucloud.com/api',
         // target: 'http://192.168.31.181:8110',
         changeOrigin: true,
         rewrite: path => path.replace(/^\/api/, '')