Commit ae4e4ff5 authored by chenqikuai's avatar chenqikuai

fix: 修复图片上传

parent 645802c0
...@@ -92,7 +92,7 @@ export default Vue.extend({ ...@@ -92,7 +92,7 @@ export default Vue.extend({
}, },
handleOk(e: Event) { handleOk(e: Event) {
if (this.imageSrc) { if (this.imageSrc) {
if(!this.imageSrc.match(/^https:\/\//)){ if(!this.imageSrc.match(/^((https|http)\:\/\/)|(\/proxyApi)/)){
message.error('请输入正确的图片链接') message.error('请输入正确的图片链接')
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment