在pinia中使用SecureLS将数据加密后存储到localStorage中,获取的时候解密使用
摘要:第一步对 secure-ls 进行安装:npm install secure-ls 第二步: secure-ls 的引入:import SecureLS from "secure-ls"; 点击查看代码 import { ref } from "vue"; import { defineStore
阅读全文
posted @
2024-11-29 16:56
好久不见-库克
阅读(74)
推荐(0) 编辑
关于图的数据处理
摘要:function sspPolymerizationEcharts() { const chartDom = document.getElementById('main'); const myChart = echarts.init(chartDom); // 从 allData 获取数据 cons
阅读全文
posted @
2024-11-29 16:37
好久不见-库克
阅读(3)
推荐(0) 编辑
新增时间段,但是不能与原来数组中的时间段有重叠
摘要:如果用户添加的时间段,在上面显示时间段有重复的时间范围,则提示如下内容: 执行函数的入参内容打印: 点击查看实现代码 export function addTimeRange(timeRanges, newTimeRange) { console.log('原有的时间范围的数组timeRanges'
阅读全文
posted @
2024-11-19 14:24
好久不见-库克
阅读(10)
推荐(0) 编辑
elementPlus中的el-tree
摘要:将接口返回的数据整理成组件支持的数据结构 接口返回的数据格式: [{ "id": 767947, "appName": "生生世世", "appBundle": "cds", "appStore": 2, "link": "www.baidu.com", "accountId": "3,68", "
阅读全文
posted @
2024-11-14 15:25
好久不见-库克
阅读(87)
推荐(0) 编辑
el-form中循环出来的el-form-item进行校验的设置
摘要:注意的内容点: 点击查看代码 <template v-for="(e, index) in appAdnInfo.ext" :key="e.name"> <el-form-item :label-width="labelWidth" :label="e.label" :prop="'ext.' +
阅读全文
posted @
2024-11-04 13:48
好久不见-库克
阅读(190)
推荐(0) 编辑