上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页
摘要: $("#test").css("pointer-events","none") 阅读全文
posted @ 2019-12-11 10:20 武卡卡 阅读(3877) 评论(4) 推荐(0) 编辑
摘要: /* 为对应的路由跳转时设置动画效果 */ <transition name="fade"> <router-view /> </transition> .fade-enter-active, .fade-leave-avtive { transition: opacity 1s } .fade-e 阅读全文
posted @ 2019-12-10 09:33 武卡卡 阅读(3040) 评论(0) 推荐(0) 编辑
摘要: 1, 原因是因为:findOneAndUpdate()内部会使用findAndModify驱动,驱动即将被废弃,所以弹出警告!附上官方解释:Mongoose v5.5.8: Deprecation Warnings 2, 解决方法 在使用mongose时全局设置 mongoose.set('useF 阅读全文
posted @ 2019-12-08 00:14 武卡卡 阅读(2255) 评论(0) 推荐(2) 编辑
摘要: <img class="headImg" :src="require('../../assets/uploads/'+headImg)" alt="图片资源"> 阅读全文
posted @ 2019-12-03 20:47 武卡卡 阅读(1175) 评论(0) 推荐(0) 编辑
摘要: <div class="right userPicture" :style="[{'background':`url(${userImg}) no-repeat center`},{'background-size': 'cover'}]"></div> 阅读全文
posted @ 2019-12-03 20:30 武卡卡 阅读(6217) 评论(0) 推荐(2) 编辑
摘要: 一定要将静态资源引入 【 require("@/assets/") 】,绑定到 模型绑定的:src 数据中 动态的数据才能有效 <template> <div> <el-card class="box-card"> <div slot="header" class="clearfix"> <span 阅读全文
posted @ 2019-11-23 21:26 武卡卡 阅读(5026) 评论(0) 推荐(0) 编辑
摘要: var multer = require('multer') var storage = multer.diskStorage({ destination: function (req, file, cb) { cb(null, 'uploads/') }, filename: function ( 阅读全文
posted @ 2019-11-22 23:43 武卡卡 阅读(664) 评论(0) 推荐(0) 编辑
摘要: 直接上代码。 <template> <div> <el-upload action="http://localhost:3000/picture" :http-request = "getimages" :before-upload = "beforeUp" :headers="headers" l 阅读全文
posted @ 2019-11-22 23:04 武卡卡 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 一,只有在上传文件之前的钩子函数中才可以获得最初的文件(文件本身的二进制形式),用以以上传服务器。 还需要使用formdata来承载数据,便于接收 <template> <div> <el-upload action="http://localhost:3000/picture" :http-req 阅读全文
posted @ 2019-11-21 22:40 武卡卡 阅读(4435) 评论(0) 推荐(1) 编辑
摘要: <template> <div> <el-upload action="http://localhost:3000/picture" :headers="headers" list-type="picture-card" :on-preview="handlePictureCardPreview" 阅读全文
posted @ 2019-11-19 05:41 武卡卡 阅读(6238) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页