摘要: 常用命令 git强制覆盖本地代码,与git远程仓库保持一致: git reset --hard origin/master更新远程分支列表:git remote update origin --prune git命令操作查看所有分支 git branch -a 切换分支 git checkout 分 阅读全文
posted @ 2022-10-10 11:39 丹东来了 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 在实际开发中,我们需要对用户发起的重复请求进行拦截处理,比如用户快速点击提交按钮 解决办法 1、新建request.js import axios from 'axios' // 创建 axios 实例 const service = axios.create({ baseURL: '', // a 阅读全文
posted @ 2022-10-10 11:24 丹东来了 阅读(232) 评论(0) 推荐(0) 编辑
摘要: <el-date-picker v-model="selectedDateValue" type="daterange" value-format="yyyy-MM-dd" :clearable="false" align="right" unlink-panels range-separator= 阅读全文
posted @ 2022-09-22 16:41 丹东来了 阅读(824) 评论(0) 推荐(0) 编辑
摘要: 1、vscode下载Vetur 和 Prettier - Code formatter插件 2、修改.eslintrc.js,新增如下,放哪里无所谓 // required to lint *.vue files plugins: [ 'vue' ], 3、根目录新建vue.config.js mo 阅读全文
posted @ 2021-02-07 23:03 丹东来了 阅读(988) 评论(0) 推荐(2) 编辑
摘要: 新建 Pagination <template> <div :class="{'hidden':hidden}" class="pagination-container"> <el-pagination :background="background" :current-page.sync="cur 阅读全文
posted @ 2020-12-09 14:47 丹东来了 阅读(876) 评论(0) 推荐(1) 编辑
摘要: <div class="form"> <button class="send_btn" :class="!login.canGet ? 'btn-disabled' : ''" @click="getCode" :disabled="!login.canGet" type="button"> <sp 阅读全文
posted @ 2020-12-09 10:58 丹东来了 阅读(727) 评论(0) 推荐(1) 编辑
摘要: 前提:装插件html2canvas 、QRCode <div class="dialog-content" id="posterHtml"> <img :src="posterPageTemplate"> <!-- 二维码 --> <div class="qrcode"><div id="qrcod 阅读全文
posted @ 2020-11-26 15:15 丹东来了 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 前提准备:scss 和 px2rem-loader 具体可以查看 一、新建抽奖组件 Lottery.vue 1、新components建文件夹lottery,包含src文件夹和index.js,src下面新建抽奖组件 Lottery.vue,lottery.scss index.js /** * { 阅读全文
posted @ 2020-11-26 14:23 丹东来了 阅读(807) 评论(0) 推荐(0) 编辑
摘要: 1、template <el-select v-model="form.test" clearable filterable remote :remote-method="remoteCustName" :loading="loading" @clear="remoteCustName"> </el 阅读全文
posted @ 2020-11-25 16:20 丹东来了 阅读(6455) 评论(0) 推荐(0) 编辑
摘要: // 获取当前时间,格式YYYY-MM-DD HH:mm:ss export function formatDate (timeStamp) { // 解决IE转换日期格式不支持-,需要替换为/或者再转为时间戳 let isIe = ('' + timeStamp).indexOf('-') if 阅读全文
posted @ 2020-09-18 10:42 丹东来了 阅读(1425) 评论(0) 推荐(0) 编辑