mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
修复直播编辑bug
This commit is contained in:
@@ -229,7 +229,14 @@ export default {
|
||||
//创建外链
|
||||
const updateRef = () => {
|
||||
if (!state.inputV1) return message.warning("请输入外链名称");
|
||||
if (!state.inputV2) return message.warning("请输入链接");
|
||||
if (!state.inputV2){
|
||||
return message.warning("请输入链接");
|
||||
}else{
|
||||
const reg = /(https?|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/;
|
||||
if ((!reg.test(state.inputV2)) && state.inputV2 != '') {
|
||||
return message.warning("请输入合法的链接地址");
|
||||
}
|
||||
}
|
||||
let obj = {
|
||||
linkAddress: state.inputV2,
|
||||
linkDescription: state.textV1,
|
||||
|
||||
Reference in New Issue
Block a user