logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue element 提交后打开弹窗有红色校验提示

this.$nextTick(()=>{this.$refs[formName].clearValidate();})提交后清空校验规则:划重点,一定要写在 this.$nextTick方法里,不然不会生效

vue , 进入页面判断是否有权限,无权限进入登录

1.router.js{path: '/deliver', //发货component: (resolve) => require(['../components/pages/deliver'], resolve),meta: {requiresAuth:true,keepAlive: true,}...

vue 父子组件传值及不生效问题

1.父组件<!--顶部--><topHead :parent="testdata" v-if="testdata.length>0"></topHead>data() {return {testdata:[],}}methods: {//获取信息getBannerList(){getHone().then(response => {this.test

vue 使用腾讯地图获取坐标,亲测有效

1.先获取腾讯地图的key:https://lbs.qq.com/2.//先在vue的index.html里面引入腾讯地图包<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=yourkey"></script>//.vue<template>&l...

UniApp中引入第三方ColorUI操作步骤

1.去colorui官网下载colorui压缩包,解压后把下图中的文件复制出来,粘贴到888项目目录下:链接:https://www.color-ui.com/2.在app.vue引入css:@import "colorui/main.css";@import "colorui/icon.css";3.在main.js引入cu-custom组件import ...

uni-app路由跳转及参数的传参和接收

1.保留当前页面,跳转到应用内的某个页面,使用uni.navigateTo:示例:在起始页面跳转到test.vue页面并传递参数uni.navigateTo({ url: 'test?id=1&name=uniapp'});// 在test.vue页面接受参数export default { onLoad: function (option) {//option为...

MaxListenersExceededWarning:Possible EventEmitter memory leak detected.

在vue.config.js文件中添加下边代码require('events').EventEmitter.defaultMaxListeners = 0

vue 两个日期比较大小

1.let d1=‘2020-11-15 17:59:20’;let d2=‘2020-07-22 17:59:20’;//日期比较的方法compare(date1,date2) {let dates1 = new Date(date1);let dates2 = new Date(date2);if (dates1 > dates2) {return true} else {return

vue 路由跳转,地址栏变化但是页面没有跳转

1.可能是由于子路由没有渲染没有<router-view></router-view>,导致子路由没法渲染。添加<router-view></router-view>。

    共 15 条
  • 1
  • 2
  • 请选择