11 2024 档案

摘要:1.删除页面参数 delete this.$route.query.XXX; // XXX代表要删除的参数(即url参数key) created(){ const data=this.$route.query; if(data.code){ delete this.$route.query.code 阅读全文
posted @ 2024-11-25 14:18 Ao_min 阅读(552) 评论(0) 推荐(0) 编辑
摘要:可以通过设置el-dialog的属性来调整弹窗的位置,具体方法如下:1.设置dialog的top和1eft属性,例如: <el-dialog :top="top":left="left"></el-dialog> data(){ return{ top:'10px', left:'20px' } } 阅读全文
posted @ 2024-11-22 10:52 Ao_min 阅读(929) 评论(0) 推荐(0) 编辑
摘要:post: const res = await axios.post(url, 参数, { headers });例如: export async function apireportheader(params, headers) { const res = await axios.post('/d 阅读全文
posted @ 2024-11-21 16:43 Ao_min 阅读(417) 评论(0) 推荐(0) 编辑
摘要:项目场景:点击某个按钮需要给出弹窗提示,但是只要确定操作,不需要取消操作问题描述:在使用element-ui内的this.$confirm组件时,无论进行什么操作,取消按钮还是存在。解决方案:直接在this.$confirm内用showCancelButton:false或者showConfirmB 阅读全文
posted @ 2024-11-07 08:57 Ao_min 阅读(570) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示