排序
nodejs记录:liunx服务器使用dev运行项目出现node:events:491错误的解决办法
我使用的是vue3,报这个错的原因是因为liunx无法调用浏览器打开项目。解决办法:server: { port: viteEnv.VITE_PORT, open: false, //将此设置改为false host: '0.0.0.0', proxy: { '/api/v1': ...
npm ERR! notarget No matching version found for xxx@^1.0.64. npm 插件安装失败解决
问题 今天使用npm install安装项目依赖的时候报错:npm ERR! notarget No matching version found for xxx@^1.0.64. npm npm ERR! code ETARGET npm ERR! notarget No matching version found f...
Vue的beforeRouteEnter如何使用组件实例的方法
beforeRouteEnter如何使用组件实例的方法beforeRouteEnter(to, from, next) { this.axios() }对于这样的代码,会报错,因为此时组件实例不存在,没有this,就更没有挂载到上面的axios方法了。解...
nuxt3项目中使用element-plus的el-menu组件default-active无法正常激活菜单
根据官方的指引使用default-active绑定一个激活菜单的indexconst activeIndex = ref('-1');bug现象:变更这个值发现菜单无法激活activeIndex.value = '0';解决:nuxt是服务端渲染框架,使用clie...
Taro框架实现微信登录及获取手机号和用户信息
import React , { useState } from 'react'; import { Button, Image, Toast } from '@taroify/core'; import Taro from '@tarojs/taro'; import wechatApi from '../api/wechat'; import WXBiz...
Nuxt3的useFetch、useAsyncData、useLazyFetch、useLazyAsyncData的区别
useFetch和useLazyFetchuseFetch的使用 useFetch('/baidu.php?url=zym88.cn&type=Sl_Number', { method: 'get', baseURL: 'https://www.zym88.cn', }).then(res => { console.log(res); ...
nuxt3引入element-plus的三种方法
1、全部引入 安装element-plus依赖 npm install element-plus --save 在nuxt3项目中plugins下新建一个element-plus.client.ts文件(注意:默认必须在 plugins 下新建配置文件,这是“约定”,...
在React中使用 react-router-dom 编程式路由导航【含V5.x、V6.x】
react-router-dom 编程式路由导航 (v5) 1.push跳转+携带params参数 props.history.push(`/b/child1/${id}/${title}`); 2.push跳转+携带search参数 props.history.push(`/b/child1?id=${id}&...
redis常见字符乱码问题及解决办法
问题 redis保存数据后出现\xac\xed\x00\x05t\x00 解决办法 创建一个配置类 @Configuration public class RedisTemplateBeanPostProcessor implements BeanPostProcessor { @Override public Obj...
Centos7 安装|更新git
背景描述 CentOS7上的Git版本太陈旧,在使用过程中会遇到问题,因此需要升级git版本。 # git --version git version 1.8.3.1 # 系统版本:(CentOS 7.6) # cat /etc/redhat-release CentOS Lin...
docker 常用命令
docker info #显示docker的系统信息,包括镜像和容器的数量 docker version #显示docker的版本信息。 #帮助命令 docker 命令 --help #帮助命令 #镜像命令 docker images #查看所有本地主机上的...
binglan001 2个月前0
试试好不好用,原版的太贵了用户95817669 2个月前0
你在我规划的航程上,我在你投射的视线里。123212121212121212124个月前0
要是追不上光,那就变成光吧。叶创 6个月前0
我希望兜兜转转之后那个人还是你。