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