From 1f76e7315389bf38a697e6db4d4be3fce6425c45 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Mon, 28 Dec 2020 11:00:17 +0800
Subject: [PATCH] 优化图片上传组件,修复图片路径转换的问题

---
 bases/Fetcher.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bases/Fetcher.js b/bases/Fetcher.js
index f845bae..c84c458 100644
--- a/bases/Fetcher.js
+++ b/bases/Fetcher.js
@@ -439,7 +439,7 @@
         } else {
             // 修复补齐
             if (type === 'fix') {
-                if (!path || /^\/(upload|static)/.test(path)) {
+                if (!path || /^(http|\/upload|\/static)/.test(path)) {
                     return path;
                 } else {
                     return '/upload/' + path;

--
Gitblit v1.9.1