摘要: 这里记录下,自定义指令相关思路,用到 vue3 + element plus: 说明一下使用场景:创建自定义指令 v-hasPermi , 用来判断按钮权限的(新增/编辑/删除/查看等)。 1. 页面使用(全局使用,无需引入): <el-button type="primary" icon="Plu 阅读全文
posted @ 2024-03-12 15:02 行走的蒲公英 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 截取浏览器url function getBowserUrl(path) { let result = ''; if (path) { // 获取当前URL var currentURL = window.location.href; // 使用URL API来解析URL var urlObject 阅读全文
posted @ 2024-03-12 14:08 行走的蒲公英 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1. get请求(参数为对象) 请求地址是,参数用&拼接: 例如:参数格式为一个对象: 请求地址: 请求写法: export function approvalList(data) { return request({ url: '/approval/list', method: 'get', pa 阅读全文
posted @ 2024-03-12 14:01 行走的蒲公英 阅读(75) 评论(0) 推荐(0) 编辑