摘要: vue3调用baidu,sdk上传到百度云,带STS验证 阅读全文
posted @ 2024-04-16 15:29 敲敲碰碰 阅读(74) 评论(0) 推荐(0) 编辑
摘要: template: <FollowupLog ref="followupLog" /> script: import FollowupLog from "./FollowupLog.vue" const followupLog = ref<InstanceType<typeof FollowupLo 阅读全文
posted @ 2024-03-15 17:01 敲敲碰碰 阅读(149) 评论(0) 推荐(0) 编辑
摘要: vite+vue3 import批量导入图片主要使用 “import.meta.glob”方法。具体使用如下: 1.const list = import.meta.glob("../../static/images/left-image/*.*", { eager: true }) 2.image 阅读全文
posted @ 2024-02-26 14:50 敲敲碰碰 阅读(517) 评论(0) 推荐(0) 编辑
摘要: // 代码: const checkedNodes = this.$refs.asyncTree.getCheckedNodes(false, true) // 遍历一下就可以获得所有id const ids = checkedNodes.map(item=>item.id) console.log 阅读全文
posted @ 2023-11-07 11:14 敲敲碰碰 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 一、Array.from使用 通常Array都用于数组去重。下面是Array的详细用法: 1.将类似组转化为真正的数组 函数参数转化为数组 dom转化为数组 这里强调一下, 必须有length属性,否则返回的是空数组。 索引必须是字符串数字,否则返回的是[undefined,undefined,un 阅读全文
posted @ 2023-07-24 10:18 敲敲碰碰 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 接口: PMPDownloadZip: params => axios.post('pmpGenerateCertificate/downloadZip', params, {responseType: 'blob'}), // 批量导出证书 // 下载方法 async downloadFn({ i 阅读全文
posted @ 2023-06-20 09:55 敲敲碰碰 阅读(133) 评论(0) 推荐(0) 编辑
摘要: methods: htmlEscape(str) { let s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&amp;"); s = s.replace(/</g, "&lt;"); s = s.replace(/>/g 阅读全文
posted @ 2023-05-23 15:45 敲敲碰碰 阅读(225) 评论(0) 推荐(0) 编辑
摘要: wxml <button open-type='share'>分享给我的好友</button> js onShareAppMessage(){ return { title: 'button', path: 'page/component/pages/button/button' }} 隐藏右上角. 阅读全文
posted @ 2023-05-11 10:19 敲敲碰碰 阅读(201) 评论(0) 推荐(0) 编辑
摘要: const { data } = await checkCensor({ msg: `${this.content}用中文回答` }); if (data.data) { const object = { content: "您的问题不在我的能力范围之内。", role: "assistant", 阅读全文
posted @ 2023-05-10 14:06 敲敲碰碰 阅读(409) 评论(0) 推荐(0) 编辑
摘要: <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=0.3, maximum-scale=1.0, minimum-scale=0.3" /> 阅读全文
posted @ 2023-05-09 20:06 敲敲碰碰 阅读(57) 评论(0) 推荐(0) 编辑