element-ui - $prompt非空验证

//点击删除按钮

delStoreFun(data) {

let than = this;

this.$prompt('删除门店请填写备注', '提示', {

confirmButtonText: '确定',

cancelButtonText: '取消',

inputValidator: (value) => { //非空验证

if (!value) {

return '输入不能为空'

}

},

}).then(({ value }) => {

delShop({ id: data.systemStore.id,reason:value}).then((res) => {

than.$message({

message: "操作成功",

type: 'success'

});

than.list();

})

})

},

相关推荐
%KT%1 天前
大模型提示词在标点符号上的一些习惯
人工智能·prompt
咖啡星人k2 天前
2025 AI编程进入“自动驾驶“时代:我用MonkeyCode把Agent、MCP和AI原生工作流跑通了
人工智能·自动驾驶·prompt·aigc·ai编程·ai-native
weixin_471383032 天前
19 Prompt 进阶——系统讲解
prompt
来让爷抱一个2 天前
拯救我的“烂尾“项目:我用MonkeyCode把五个AI热点实践了个遍
网络·数据库·人工智能·prompt·ai编程
可乐ea2 天前
智能体记忆不是越多越好:ALTK-Evolve 八模型评测,记忆要按模型能力“配药“
prompt·rag·ai agent·智能体记忆
yijianxiangde1003 天前
Prompt Engineering 提示词工程 - AI应用开发的基础技能
人工智能·microsoft·prompt
Eric.464 天前
AI漫剧量产Prompt参数实操手册:Stable Diffusion+ComfyUI+OpenClaw通用复制即用配置
人工智能·深度学习·stable diffusion·prompt·ai漫剧
精彩AI说4 天前
ChatGPT生成内容总是不按要求怎么办?格式、字数和指令失效的6个解决方法
chatgpt·prompt·ai写作·提示词·使用技巧·chatgpt教程
Eric.464 天前
Stable Diffusion+ComfyUI+OpenClaw AI漫剧量产提示词工程:结构化Prompt、负面词脱敏、权重锁定防画面崩坏全方案
大数据·人工智能·stable diffusion·prompt·comfyui·ai漫剧
SHIPKING3934 天前
【Harness Engineering】07_多代理与验证:用分工和验证管理不稳定性
prompt·harness