We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a02d73 commit d7f714bCopy full SHA for d7f714b
ruoyi-fastapi-frontend/src/components/ImageUpload/index.vue
@@ -44,6 +44,7 @@
44
45
<script>
46
import { getToken } from "@/utils/auth";
47
+import { isExternal } from "@/utils/validate";
48
49
export default {
50
props: {
@@ -93,7 +94,7 @@ export default {
93
94
// 然后将数组转为对象数组
95
this.fileList = list.map(item => {
96
if (typeof item === "string") {
- if (item.indexOf(this.baseUrl) === -1) {
97
+ if (item.indexOf(this.baseUrl) === -1 && !isExternal(item)) {
98
item = { name: this.baseUrl + item, url: this.baseUrl + item };
99
} else {
100
item = { name: item, url: item };
0 commit comments