随笔分类 -  前端

开发中遇到的bug
摘要:使用nuxt/ui时,运行项目会报错 这个是因为正常需要访问Google的字体服务,我使用了各种代理好像都不行,无奈只能禁用这个fonts了在nuxt.config.ts中禁用fonts后项目正常运行 阅读全文
posted @ 2025-12-19 19:05 rht 阅读(164) 评论(0) 推荐(0)
摘要:{ "compilerOptions": { "baseUrl": ".", "paths": { "@/*": [ "./src/*" ], } }, "exclude": [ "node_modules", "dist" ] } 更目录新建jsconfig.json文件,内容如上 阅读全文
posted @ 2024-01-09 21:14 rht 阅读(84) 评论(0) 推荐(0)
摘要:在Android中导入geckoview实现自定义webview功能,发现在实现网页自动播放视频的时候无法正常使用,必须要用户动手触摸页面与其交互后才可以实现自动播放的功能 在Android的开发文档中查阅发现原生的webview有以下方法 但是geckoview并没有这个方法,查看geckovie 阅读全文
posted @ 2023-12-29 09:50 rht 阅读(1061) 评论(0) 推荐(0)
摘要:uniapp中使用uni.getLocation()报错,报错如下: getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json 首先检查uniapp的mani 阅读全文
posted @ 2023-11-06 14:42 rht 阅读(5704) 评论(0) 推荐(1)
摘要:在使用nuxt框架进行静态打包部署时候每次总会有一两个界面报TypeError: renderContext.renderResourceHints is not a function的错误 一开始以为是asyncData中获取的数据有问题,在各种排查后返现数据没问题,再次编译还是会有错误,最后甚至 阅读全文
posted @ 2023-07-13 16:01 rht 阅读(599) 评论(0) 推荐(0)
摘要:在使用element-plus的时候直接导入使用会发现默认是英文,如果需要使用中文则只需要一下操作 在main.ts(js)中添加以下代码 import ElementPlus from "element-plus" import locale from 'element-plus/lib/loca 阅读全文
posted @ 2023-03-12 13:39 rht 阅读(308) 评论(0) 推荐(0)
摘要:使用electron打包时候报ExecError: D:\zlwl\el\win-dahui\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECU 阅读全文
posted @ 2023-02-02 10:46 rht 阅读(4417) 评论(0) 推荐(0)
摘要:monaco-editor monaco-editor是一款代码编辑器,使用它我们可以再web实现vscode的基本功能,下面是在vue中使用monaco-editor流程 安装 npm install monaco-editor monaco-editor-webpack-plugin vue.c 阅读全文
posted @ 2022-12-01 09:49 rht 阅读(1147) 评论(0) 推荐(0)
摘要:最近遇到了用户在浏览器打开本地应用的需求 网上一顿搜索以后顺利调起,记录一下过程: (P.S:一般比较知名的应用都会提供协议打开自己,本文只针对没有协议的应用) 新建一个 xxx.reg后缀的注册表文件 在文件中输入以下代码 Windows Registry Editor Version 5.00 阅读全文
posted @ 2022-11-25 14:31 rht 阅读(1293) 评论(0) 推荐(0)
摘要:报错信息: Module build failed (from ./node_modules/thread-loader/dist/cjs.js):Thread Loader (Worker 0)Cannot read properties of undefined (reading 'create 阅读全文
posted @ 2022-11-23 11:53 rht 阅读(2241) 评论(0) 推荐(0)