From 8805eebe39d6470059616decd9fb10ab1f153088 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期四, 13 十月 2022 17:41:26 +0800
Subject: [PATCH] 去掉42.193.1.25地址指定

---
 src/components/Upload/index.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue
index aa2ddd2..656aa7d 100644
--- a/src/components/Upload/index.vue
+++ b/src/components/Upload/index.vue
@@ -1,5 +1,5 @@
 <template>
-    <el-upload :file-list="fileList" class="upload-demo" action="http://42.193.1.25:8082/sccg/file/medias" multiple
+    <el-upload :file-list="fileList" class="upload-demo" action="/sccg/file/medias" multiple
         :show-file-list="flag" :before-upload="beforeUpload" :limit="50" :on-success="handleSuccess"
         :headers="getToken()">
         <div class="uploadBtn" v-if="picUrl===''">
@@ -25,10 +25,10 @@
         beforeUpload(rawFile) {
             console.log(rawFile);
             if (rawFile.type !== 'image/png' && rawFile.type !== 'image/svg+xml' && rawFile.type !== 'image/jpg' && rawFile.type !== 'image/jpeg') {
-                this.$message.error('Avatar picture must be jpg/svg/jpeg/png format!')
+                this.$message.error('鍥剧墖蹇呴』鏄� jpg/svg/jpeg/png 鏍煎紡!')
                 return false
             } else if (rawFile.size / 105 / 105 > 2) {
-                this.$message.error('Avatar picture size can not exceed 2MB!')
+                this.$message.error('涓婁紶鍥剧墖涓嶈兘瓒呰繃 2MB!')
                 return false
             }
             return true

--
Gitblit v1.8.0