Demo:优化超链接输入

This commit is contained in:
wanglin2 2023-10-08 09:37:54 +08:00
parent 8dcc7c985d
commit 3acd425c09

View File

@ -87,6 +87,8 @@ export default {
const res = this.link.match(/^(https?):\/\//)
if (res && res[1]) {
this.protocol = res[1]
} else if (!this.link) {
this.protocol = 'https'
} else if (setProtocolNoneIfNotExist) {
this.protocol = 'none'
}