摘要:
场景是token有过期时间,token过期后操作需要弹窗提示token过期,然后返回登录页。 方案: token过期会返回特定code,接口请求统一拦截,如下代码是弹窗框逻辑。 function loginTimeOutMessageBox() { MessageBox({ title: i18n. 阅读全文
posted @ 2023-12-19 19:48
yaokunlun
阅读(137)
评论(0)
推荐(0)
摘要:
记录一下,直接上代码,核心代码就一行。 注: prop需要定位到表单项的值,如下定义为[${index}].value,即校验canConfigList[${index}].value的值 <el-form :inline="true" ref="addChannelRef" :model="can 阅读全文
posted @ 2023-12-19 11:07
yaokunlun
阅读(76)
评论(0)
推荐(0)