摘要: 事项说明 & 建议 🎯 核心事件 beforeunload (用于提示用户), unload (用于发送请求) ⚠️ 请求方法 推荐使用 fetch (设置 keepalive: true) 或 navigator.sendBeacon(),避免使用异步的axios 🔍 区分场景 可以尝试通过时 阅读全文
posted @ 2025-11-04 11:41 Oopy 阅读(130) 评论(0) 推荐(0)
摘要: 效果图: HTML部分: <el-form class="step-form1" ref="form1" :model="form1" :rules="rules1" label-width="120px"> <el-form-item label="管理员手机号:" prop="userPhone 阅读全文
posted @ 2025-11-04 09:56 Oopy 阅读(12) 评论(0) 推荐(0)
摘要: 需求说明:选择指定2个不同格式的文件,点击确认上传后根据文件类型传不同的参数名,如图所示: 一个上传文件接口,需要前端入参格式为: { xmlFile: file1, pdfFile: file2, ... } 主要代码: <el-upload action="" ref="upInvoice" : 阅读全文
posted @ 2025-07-02 11:49 Oopy 阅读(100) 评论(0) 推荐(0)
摘要: 效果图: 实现方法: <el-countdown :time="countdownTime" :formatter="formatter" /> <div v-html="formattedTime"></div> formatter(time) { const days = Math.floor( 阅读全文
posted @ 2024-09-06 16:10 Oopy 阅读(587) 评论(0) 推荐(0)
摘要: 效果图: 代码:HTML部分 <el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb-item v-for="(breadItem,index) in breadList" :key="index"> <el-popo 阅读全文
posted @ 2024-04-15 13:54 Oopy 阅读(99) 评论(0) 推荐(0)
摘要: 先上效果图: 主要代码: <template> <div class="step_box" :class="{ isright: (props.stepIndex+1)%2 0, isfirst: props.stepIndex 0, islast: props.stepIndex props.to 阅读全文
posted @ 2024-02-22 10:41 Oopy 阅读(402) 评论(0) 推荐(0)
摘要: 参考文章:https://blog.csdn.net/qq_27936291/article/details/124768989 1.安装插件 npm i @zhj-target/vue3-kind-editor --save 或者 yarn add @zhj-target/vue3-kind-ed 阅读全文
posted @ 2023-11-27 16:15 Oopy 阅读(1323) 评论(1) 推荐(0)
摘要: 前言: 在网上找了很多相关内容,都是需要先上传至后端,然后再从后端传到OSS,或者就是传token什么的,根本不是我想要的效果。 话不多说直接上图: 刚开始主要是卡在富文本框的单图片上传按钮变灰,因为是需要后端接口的支持导致的,后来在网上看到可以直接将serverUrl配置为config.json的 阅读全文
posted @ 2023-05-14 01:04 Oopy 阅读(2354) 评论(0) 推荐(0)
摘要: 注意:input v-model动态更新失效问题,解决方法 $nextTick() 1.限制只能输入数字,英文 <input v-model="license_num" type="text" :change="check_num()" placeholder="请输入"> //限制 check_n 阅读全文
posted @ 2022-12-08 09:27 Oopy 阅读(2626) 评论(0) 推荐(0)
摘要: 1. document.execCommand() 【即将废弃】 function copy(textValue) { // 动态创建 textarea 标签 const textarea = document.createElement('textarea') // 将该 textarea 设为 阅读全文
posted @ 2022-12-06 16:24 Oopy 阅读(5526) 评论(0) 推荐(0)