- 博客(115)
- 收藏
- 关注
原创 node.js + @elastic/elasticsearch 操作elasticsearch数据库
node.js + @elastic/elasticsearch 操作elasticsearch数据库
2024-04-25 16:35:50 294 2
原创 vue + element plus:ResizeObserver loop completed with undelivered notifications
ResizeObserver loop completed with undelivered notifications.
2024-04-10 09:58:32 618 1
原创 npm run serve起服务报错:each `context` object must have a `target` property specified as a url string
each `context` object must have a `target` property specified as a url string
2024-04-03 17:15:55 177
原创 [webpack-cli] Invalid options object 报错
[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema
2024-03-26 16:17:38 322
原创 vue3.0 + ts + eslint报错:error Parsing error: ‘>‘ expected
error Parsing error: '>' expected
2024-03-25 14:49:24 626
原创 threejs + Line2 + Raycaster时会报错
LineSegments2.js:220 LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.
2024-03-20 13:45:19 352
原创 vue-cli + vue3.0创建的项目,打包后白屏
vue-cli + vue3.0创建的项目,打包后白屏vue.config.js 配置模板
2024-03-13 17:52:08 418
原创 下载依赖包报错:request to https://registry.npm.taobao.org failed, reason certificate has expired
request to https://registry.npm.taobao.org failed, reason certificate has expired
2024-02-23 14:53:20 480
原创 element + el-checkbox-group 折叠效果
这个就不需要加样式和js逻辑,看各自需求,择优选择!还可以结合el-collapse 搞下,效果如下。
2024-02-01 10:30:33 527
原创 vue + 动态加载图片
import.meta.url 是一个 ESM 的原生功能,会暴露当前模块的 URL。首先尝试我们经常用的require动态引入, 发现报错:require is not defind,这是因为 require 属于 Webpack 的方法,我现在的环境是 vue3.0 + vite。因为配置后打包,会多一层路径,导致获取不到图片,这时可以判断开发环境,加上这层路径。这里还有一点,在vite.config.js 中如果有配置 base,那这里还是不行。1、 适用于处理少量链接的资源文件。
2024-01-31 18:27:20 910
原创 vue3.0报错:Module parse failed: Unexpected token (3:27) File was processed with these loaders:
这个错误是因为在项目中使用了 lang=“ts”,但是我们创建的项目并不支持 lang=“ts”,如果是新项目最简单的方式,就是我们使用 vue-cli 创建项目时,选择创建 TS 环境的项目。2、下一步,这里就是选择 TS 环境。1、选择自定义创建项目。
2024-01-30 15:39:16 690
原创 [Vue warn]: Extraneous non-props attributes (fileList) were passed to component but……
1.第一种情况,就是你有需要传输一个prop属性的数据给子组件,但是你在子组件中忘记用defineProps接收,无意中触发了透传 Attributes,在使用setup语法糖的情况下注意使用defineProps接收props属性数据。2.第二种情况,就是你不需要传输一个prop属性的数据给子组件,但是你在整理代码时,忘记将父组件的子组件标签中的:xxx="xxx"删除。一般是上面三种情况之一,我这边排查后是第二种情况,父组件将 fileList 传给了子组件,子组件没有使用,导致这个预警。
2024-01-17 14:48:29 534
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人