mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 禁止设置空的页面超链接
This commit is contained in:
parent
6bc30dc4c3
commit
19aa06273a
@ -14,6 +14,10 @@ export default () => {
|
|||||||
message.error('不是正确的网页链接地址')
|
message.error('不是正确的网页链接地址')
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if (link.type === 'slide' && !link.target) {
|
||||||
|
message.error('请先选择链接目标')
|
||||||
|
return false
|
||||||
|
}
|
||||||
const props = { link }
|
const props = { link }
|
||||||
slidesStore.updateElement({ id: handleElement.id, props })
|
slidesStore.updateElement({ id: handleElement.id, props })
|
||||||
addHistorySnapshot()
|
addHistorySnapshot()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user