![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
Heart_B
这个作者很懒,什么都没留下…
展开
-
Uncaught (in promise) cancel原因:this.$confirm方法内置pormise方法所以不能把.catch()去掉(因为取消操作时,无法捕获)
cancelSponsor(id) { this.$confirm(`确定撤销主办方`, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => { this.$http({ url: this.$http.adornUrl(`/active/middle原创 2020-06-12 16:34:24 · 934 阅读 · 0 评论 -
vue+element之el-select的回显使用(这是个弹框操作)
标题前端vue+element之el-select的回显使用(这是个弹框操作)<template> <el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.ent原创 2020-06-12 09:48:31 · 3440 阅读 · 0 评论 -
$refs的使用
$refs父组件调用子组件的方法,可以传递数据。父组件 $refsFa.vue<template> <div> <div>$refs父组件调用子组件的方法,可以传递数据</div> <h1>父组件数据:{{msg}}</h1> <refsCh ref="child"></refsCh > <button @click="updateCity()">原创 2020-06-11 21:26:28 · 167 阅读 · 0 评论