logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

解决this._data.$$state...“Error: [vuex] do not mutate vuex store state outside mutation handlers.“ 报错

今天遇到了这样一个报错:[Vue warn]: Error in callback for watcher "function () {return this._data.$$state;}": "Error: [vuex] do not mutate vuex store state outside mutation handlers."javascript:void(0)使用场景是这样的:th

#vue.js#javascript#前端
el-input-number 如何设置初始值为空

使用el-input-number 组件时,初始化数据总是为最小值,但是很多时候我们不想展示任何数据,此时我们只需要将初始值设置为 undefined 即可。如下:

#javascript#vue.js
react 使用useRoutes遇到的问题

Functions are not valid as a React child. This may happen if you return a Component instead offrom render. Or maybe you meant to call this function rather than return it.

#react.js
Failed to execute ‘insertBefore‘ on ‘Node‘: The node before which the new node is to ...报错

今天遇到了Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. at Object.vi [as insertBefore]这个报错,使用场景:框架使用的是若依前端框架,在使用按钮权限时,报了这个错。&

#vue.js
vue做图片裁剪——vue-cropper

这里使用的是vue-cropper官方文档以及案例在这里先安装裁剪图片组件注意事项:1.代码中设置的是只有正确的url是才展示,裁剪组件2.需要给容器固定高度3.props传值可自行加减具体使用(这里使用的是antd)效果图...

#vue.js#前端#javascript
vue高德地图添加标记点,点击Marker图标放大其余保持原状

vue高德地图添加标记点,点击Marker图标放大其余保持原状

#vue.js#前端#javascript
vue3组件通信详解

vue3组件通信方式有以下几种:porps,$emit, bus,v-model,useAttrs,$ref/$parent,provide/inject,pinia,slot。

文章图片
#vue.js#前端#javascript
vue3父子组件通信(<script setup>)

在vue3中,父子组件通信与vue2不同,没有this,所以不能直接使用this.$emit 和this.$refs和Props。那么在vue3中我们要怎么通信呢?(补充:这里我们使用的是, 是在单文件组件 (SFC) 中使用组合式 API 的编译时语法糖。相比于普通的语法,它具有更多优势。

#vue.js#前端#javascript
vue嵌入PDF预览以及报错(Cannot read properties of undefined (reading ‘catch‘))解决

项目中需要用到PDF预览,查找病尝试了很多种方法,使用了iframe,但是无法访问链接,可能是跨域问题,没有深究。使用了pdfjs,引入后模块报错,无法启动,可能是版本问题,最后选择了vue-pdf。下载依赖:npm install --save vue-pdf引入:import pdf from "vue-pdf";使用(这里使用的是带有分页的,否则只会展示一页):components: {pd

#vue.js
解决el-table滚动条错位问题(完美级)

滚动条创建一个js文件,并在main.js引入:import Vue from "vue";Vue.directive("tableFit", {//指令所在组件的 VNode 及其子 VNode 全部更新后调用。componentUpdated(el, binding, vnode) {setTimeout(() => {adjustColumnWidth(el, vnode);}, 0)

#vue.js
    共 17 条
  • 1
  • 2
  • 请选择