上一页 1 2 3 4 5 6 7 8 ··· 24 下一页

2023年3月28日

摘要: <el-tabs @tab-click="handleClick" v-model="activeTabName"> <el-tab-pane v-if="" label="用户管理" name="first" ref="first" >...</el-tab-pane> <el-tab-pane 阅读全文
posted @ 2023-03-28 10:32 LeeToLee 阅读(95) 评论(0) 推荐(0)

2023年3月22日

摘要: 1.下载依赖 npm i js-cookie -S 2.引入使用 import Cookies from 'js-cookie' // 创建一个在整个网站上有效的Cookie Cookies.set('name', 'value'); // 创建一个从现在起7天后过期的cookie,在整个站点上有效 阅读全文
posted @ 2023-03-22 10:22 LeeToLee 阅读(3142) 评论(0) 推荐(0)

2023年3月6日

摘要: params传递参数要在路由表中配置参数 参数不必传加个 ? 即可 path: '/process/design/:code?', 阅读全文
posted @ 2023-03-06 09:51 LeeToLee 阅读(26) 评论(0) 推荐(0)

2023年2月28日

摘要: // 创建组件 <template> <!-- 文档搜索列表展开/收起组件 实现了文档搜索列表页 文档超过5行会显示展开/收起的功能 --> <div class="mj-text-hide"> <input :id="`group-members_exp${index}`" class="grou 阅读全文
posted @ 2023-02-28 11:58 LeeToLee 阅读(959) 评论(0) 推荐(0)
 
摘要: // webSocket.js let Socket = '' let setIntervalWesocketPush = null let socketUrl = ""; /** * 建立websocket连接 * @param {string} url ws地址 */ export const 阅读全文
posted @ 2023-02-28 11:43 LeeToLee 阅读(195) 评论(0) 推荐(0)
 
摘要: replaceData(value) { if (value) { return value.replace(/<[^>]+>/g, '').replace(/ /ig, '').replace(/\s/g, '') } else { return '' } } 阅读全文
posted @ 2023-02-28 11:32 LeeToLee 阅读(30) 评论(0) 推荐(0)
 
摘要: 设置为'arraybuffer'后当响应是400或500时也会下载下来,因此转位JSON对象做判断 const result = await Promise.all(promise); if (result) { try { // 转换成功 let enc = new TextDecoder('ut 阅读全文
posted @ 2023-02-28 11:24 LeeToLee 阅读(478) 评论(0) 推荐(0)

2022年12月5日

摘要: el-table实现单选 阅读全文
posted @ 2022-12-05 16:45 LeeToLee 阅读(125) 评论(0) 推荐(0)

2022年11月23日

摘要: function time(d) { var dateS = d.split(" "); var strGMT = dateS[0] + " " + dateS[1] + " " + dateS[2] + " " + dateS[5] + " " + dateS[3] + " GMT+0800"; 阅读全文
posted @ 2022-11-23 16:33 LeeToLee 阅读(164) 评论(0) 推荐(0)

2022年8月24日

摘要: el-checkbox实现拖动调整顺序 阅读全文
posted @ 2022-08-24 17:04 LeeToLee 阅读(511) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 24 下一页