mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Demo:优化超链接输入
This commit is contained in:
parent
8dcc7c985d
commit
3acd425c09
@ -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'
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user