should error vue3 line

linux运行shell脚本报错,提示syntax error near unexpected token `$'{\r''异常

最近运行一个shell脚本的时候,发现报syntax error near unexpected token `$’{\r’’ error。字面意思上看是换行符出现问题 用vim -b 查看,发现每一行多了~M解决方法:sed -i 's/\r//g' xxx.sh这样脚本就可以运行了——————— ......
脚本 unexpected 39 syntax linux

Vue3中Mitt的使用

Vue中使用Mitt Mitt是一个在Vue.js应用程序中使用的小型事件总线库。该库允许组件进行通信,而不必过度依赖父级或子级组件之间的props。 Mitt的特性和功能介绍 轻量级: Mitt只有200字节大小,不会增加你的应用程序的负担 方便易用:只需要引入mitt并配置即可使用 支持任何Ja ......
Vue3 Mitt Vue

VUE3基础笔记

date: 2023-3-30 10:00:00 categories: 前端系列 tags: VUE title: VUE3基础笔记 视频地址:2022最新Vue零基础小白入门教程,从入门到精通,快速上手简单易懂_哔哩哔哩_bilibili VUE开发前的准备 安装Vue工具 Vue CLI Vu ......
基础 笔记 VUE3 VUE

Angular 依赖注入错误消息:ERROR Error NullInjectorError No provider for XX

错误消息 ERROR Error: NullInjectorError: No provider for CustomI18nConfigInitializer! 应该如何处理? 我已经在 AppModule 里编写了如下代码啊: { provide: CONFIG_INITIALIZER, use ......

Vue3 setup 实时更新修改后的数据

const removeData = (currentId) => { data.value = data.value.filter((i) => { return i.key !== currentId }) } const updateData = (currentId) => { data.v ......
实时更新 实时 数据 setup Vue3

vue3 - .eslintignore 配置忽略指定文件或者文件夹的eslint检查报错

项目根目录如果没有 .eslintignore 文件,需要手动添加即可 用法如下 指定某文件夹包括里面的所有文件都忽略 build src/assets 指定某文件夹里面的指定文件类型都忽略 build/*.js 指定某文件夹里面的指定文件忽略 src/index.js 指定某文件夹里的除某个文件之 ......
文件 eslintignore 文件夹 eslint vue3

vue3 - 开启debugger 能力

在 package.json 文件 的 eslintConfig 配置部分加入 "no-debugger": "off", "no-console": "off", 意思为让eslint将debugger开启,并开启控制台 ......
debugger 能力 vue3 vue

vue3 - 定义window 全局变量

在 shims.d.ts 文件 //全局参数定义 ,export {};不可缺少 export {}; declare global { interface Window { editor: any; __minderReadOnly: any; } } 那么使用 window.editor 这个参 ......
全局 变量 window vue3 vue

vue3 - import js文件eslint报错-解决

在 shims.d.ts 文件中 ,添加 declare module '*.js'; 即可 如果让所有的文件都可导入,则写为 declare module '*'; ......
文件 import eslint vue3 vue

git push 出现fatal: unable to access 'http://xxx': The requested URL returned error: 403

问题: cch:requsetDatas leo$ git push origin master remote: Permission to bbb/requsetDatas.git denied to aaa. fatal: unable to access 'https://github.com ......
requested returned access unable fatal

vue3 - 关闭eslint提示参数必须定义类型

需要在tsconfig.json 文件里,将 strict 设为 false 即可 这样,参数不需要必须定义类型了 ......
参数 类型 eslint vue3 vue

nodejs连接mysql报错:throw err; // Rethrow non-MySQL errors TypeError: Cannot read property 'query' of undefined

该问题的解决方案如下: win+R 输入cmd mysql -u root -p 输入密码进入到mysql 3.执行sql语句,将密码改成123456(自己可以记住的密码即可) alter user 'root'@'localhost' identified with mysql_native_pa ......

python opencv line

python opencv line import cv2 # Load the image img = cv2.imread('path/to/image.jpg') # Draw a red line from (0, 0) to (100, 100) with a thickness of 5 ......
python opencv line

error TS2339: Property '$route' does not exist on type

<template> <div id="app"> <router-view v-slot="{ Component }"> <keep-alive> <component :is="Component" :key="$route.name" v-if="$route.meta.keepAlive" ......
Property error route exist 2339

docker中的报错:Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist

在学习使用 docker 技术过程中,基于 centos 镜像自定义新的镜像,其中基础镜像 centos 需要提前安装好 vim 和 net-tools,然而在刚开始通过 yum -y install vim 安装 vim 时,便出现了错误提示信息: Error: Failed to downloa ......

Python errors All In One

Python errors All In One errors ❌ from: can't read /var/mail/gpiozero https://stackoverflow.com/questions/16069816/getting-python-error-from-cant-read ......
Python errors All One In

vue3 报错 Uncaught TypeError: Cannot read properties of undefined (reading ‘deep‘)

报错信息 Uncaught TypeError: Cannot read properties of undefined (reading 'deep') at withDirectives (runtime-core.esm-bundler.js:2774:17) at Proxy._sfc_re ......

error while loading shared libraries: libxxx.so: cannot open shared object file: No such file or directory

发生这种问题就在于编译程序链接的库在运行时找不到,或者不存在,或者版本不正确等。使用ldd 你的应用程序|grep -i "libxxx"来查看程序中具体链接的库的位置和版本号,然后查看对应位置下是否有该共享库,如果没有,需要确定编译的时候指定的位置是否正确,如果仅仅是别名的问题,可以用ln创建一个 ......
shared file directory libraries loading

vue3 中使用 transition的问题

问题:在路由中添加动画效果但是,当切换路由时,页面一片空白,这个问题困扰了我几天了,今天终于发现了它的问题,特来记录一下,以便参考 首先有这么一段代码 想在vue的路由跳转里面加入动画效果,于是便这样写 // 提示: name="fade-transform" fade-transform是css类 ......
transition 问题 vue3 vue

vue3定义变量ref、reactive、toRefs的特征和应用

1.ref() 函数 ref() 函数用来根据给定的值创建一个响应式的数据对象,传入的为基本数据类型,例如字符串、数字、boolean 等,返回值是一个对象,这个对象上只包含一个 value 属性 ref定义的变量,改变值要.value,而且在template中不用写.value <div>{{ms ......
变量 reactive 特征 toRefs vue3

SpringBoot报错:Error resolving template [index], template might not exist or might not be accessible by any of the configured Template Resolvers

springboot项目正常启动,但是在访问页面的时候报错,错误信息如下: Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.​ ......

升级pip报错ERROR: Could not install packages due to an OSError: [WinError 5]

今天在安装python第三方库时,提示pip需要升级,没有多想直接升级,结果报错: 1 ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\\python\\scripts\\pip.exe' 2 ......
WinError packages install OSError ERROR

Go语言:编写一个 WebsiteRacer 的函数,用来对比请求两个 URL 来「比赛」,并返回先响应的 URL。如果两个 URL 在 10 秒内都未返回结果,返回一个 error。

问题: 你被要求编写一个叫做 WebsiteRacer 的函数,用来对比请求两个 URL 来「比赛」,并返回先响应的 URL。如果两个 URL 在 10 秒内都未返回结果,那么应该返回一个 error。 实现这个功能我们需要用到 net/http 用来调用 HTTP 请求 net/http/http ......
两个 URL WebsiteRacer 函数 语言

Vue2使用setup、ref、reactive等Vue3的组合式api

有些同学想在当前项目中体验Vue3组合式api,setup、ref、reactive等,而且一步就可以升级到Vue3,但是vue确实2.x版本,不改变当前版本怎么办呢? vue2.7.0开始自带composition-api可以放心体验,当然不支持 <script setup>语法糖,还需要retu ......
Vue reactive setup Vue2 Vue3

在vue3中读取本地txt文件

碰到运营提出需求,提供了一个.txt文件,要求输入框校验文件提供的敏感词汇,故以此记录: 上传文件: <input @change="uploadFile" type="file"> 操作函数: const fileContent = ref(''); const uploadFile = asyn ......
文件 vue3 vue txt

Mysql问题处理分享:SQLSTATE[HY000]: General error: 126 Incorrect

今天网站访问内容页突然报错: SQLSTATE[HY000]: General error: 126 Incorrect key file for table '.\数据库名\qb_cms_content1.MYI'; try to repair it 当mysql的临时文件大小设置太小,或者由于并 ......
Incorrect SQLSTATE General 问题 Mysql

微信公众号跳转小程序 wx-open-launch-weapp,在vue3+vite中使用 (多个问题集锦)

写这篇文章为了解决现在没有⼀个合集 ,所以我参考其他文档, 及自己的测试最后得出完整的方案 1. 公众号后台关联小程序 要求已认证的服务号 ,在服务号中关联要跳转的小程序 配置 JS接口安全域名 2. 调用wx.config配置‘wx-open-launch-weappʼ标签 3. 修改微信本来的内 ......

vue3 快速上手

Date: 2023-03-28 21:43:46 Vue3简介 2020年9月18日,Vue.js发布3.0版本,代号:One Piece(海贼王) Vue3带来了什么 1.性能的提升 打包大小减少41% 初次渲染快55%, 更新渲染快133% 内存减少54% ...... 2.源码的升级 使用 ......
vue3 vue

Fatal error in launcher: Unable to create process using '"d:\software\python\python.exe"

Fatal error in launcher: Unable to create process using '"d:\software\python\python.exe" 问题发生: 是由于python 切换环境导致的。 本来python 放在D盘software 的python 中直接放置了 ......
python quot launcher software process

mac os上python报错 fatal error: 'Python.h' file not found

1. 安装python (可安装任意版本) brew install python@3.9 2. 创建虚拟环境 cd ~ /opt/homebrew/bin/python3.9 -m venv ai3.9 3. 激活虚拟环境 source ~/ai3.9/bin/activate 4. 安装 pip ......
Python python fatal error found