logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue3+ts“\“../../node_modules/vue/dist/vue\“”没有导出的成员“onBeforeUnmount”

问题描述:项目中使用hooks,某个hook里使用到onBeforeUnmount函数,就在页面引入然后解决方法,最开始以为是vue版本,更新后还是不行然后尝试npm i解决方式npm i typescript@4.3.5

#前端
vite + vue3 项目运行报错Uncaught ReferenceError: process is not defined

问题描述:vite + vue3 项目运行报错Uncaught ReferenceError: process is not definedrouter配置把history: createWebHistory(process.env.BASE_URL),改为 history: createWebHistory()

vue 进入页面每次都调用methods里的方法

需求:每次一进入页面都调用methods里的方法监控路由2.在methods里的写getPathFun方法

vue移动端项目 ios input框点击无效,需要点击多次

最近开发,发现vue移动端项目input在ios上点击失效,需要多次点击才可以获取焦点排查发现导致这个问题是因为项目中引入了FastClick, 这个是解决移动端延迟300毫秒的优化当使用FastClick 时,输入框在ios上点击输入调取手机自带输入键盘不灵敏,有时候甚至点不出来。而安卓上完全没问题。这个原因是因为FastClick的点击穿透在全局main.jsFastClick.prototy

运行uniapp项目,提示uniapp依赖插件还未加载,请稍后重试

运行uniapp项目,提示uniapp依赖插件还未加载,请稍后重试

#uni-app#前端#vue.js
Vue3+TS项目运行报“Did you mean to enable the ‘allowJs‘ option”

报错问题解决排查问题,tsc文件无法运行js文件发现一个组件<script lang="ts">再次运行项目就好了

#typescript#前端
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘message‘)

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'message')

#前端#javascript#vue.js
Vue 路由定义警告Component “default“ in record with path “/“ is a Promise

问题描述:Vue 路由定义错误警告解决方案component: import("…/views/index.vue") 改为component: () => import(’…/views/index.vue’),

vscode vue代码没有颜色高亮

问题描述:因为vscode的sftp上传有问题重新安装 了vscode,发现vue代码没有颜色高亮vscode css错误提示{ expected css(css-lcurlyexpected)解决搜索vue安装插件点击下图箭头处选择vue就完美解决了

    共 11 条
  • 1
  • 2
  • 请选择