iView(View UI Design) 在使用表单操作表单内组件(例如选择框等)的时候,控制台会有个报错,如下: vue.min.js:6 TypeError: Cannot read properties of undefined (reading 'indexOf') at a.resetField (iview.min.js:1:229577) at a.required (iview.min.js:1:227418) at fn.run (vue.min.js:6:27749) at un (vue.m…

2023-10-17 0条评论 134点热度 0人点赞 admin 阅读全文

Linux上运行Python3程序的时候,报如下错误: ModuleNotFoundError: no module named '_ssl' 或者pip3 install的时候,遇到如下错误: pip is configured with locations that require tls/ssl can't connect to https url because the ssl module is not available 原因是没有安装正确的openssl 首先确保安装了openssl11,如下: yu…

2023-10-14 0条评论 154点热度 0人点赞 admin 阅读全文

因为域名有限,所以想把vue项目部署在某个域名的二级路径上,例如:https://www.example.com/someapp/下 nginx的配置如下: location ^~ /someapp/ { index index.html; alias /opt/someapp/; try_files $uri $uri/ /someapp/index.html; } 在/opt/下新建someapp目录,里面放的就是vue项目打包后的html文件 修改路由文件:router/index.js,主要是history…

2023-10-08 0条评论 576点热度 0人点赞 admin 阅读全文

vue2项目中的路由页面,希望可以为每个页面设置不同的标题(title),就是显示在浏览器或微信中的标题。 总结以下的2种方式: 方式1,router/index.js 中增加如下代码: import Vue from 'vue'; const DEFAULT_TITLE = '这是个默认的标题'; router.beforeEach((to, from) => { Vue.nextTick(() => { document.title = to.meta.title || DEFAULT_TITLE;…

2023-09-17 0条评论 169点热度 0人点赞 admin 阅读全文

vue的项目,运行run serve的时候,控制台没有报错,但是打开首页,显示: Cannot GET / 网上知道有这几种解决方案,整理下,供参考: 打包的时候会把config文件夹下index.js的assetsPublicPath改成了 "./“ ,再次编译 npm run dev 却没有改回来 ,去掉 . 改成/就可以  把项目下的node_modules文件夹删除,然后重新npm install

2023-09-03 0条评论 332点热度 0人点赞 admin 阅读全文

ElementPlus/Vue3项目启动时候,遇到如下错误: error in ./src/i18n/index.ts Module not found: Error: Package path ./lib/locale/lang/zh-cn is not exported from package /path/to/project/node_modules/element-plus (see exports field in /path/to/project/node_modules/element-plus/p…

2023-08-28 0条评论 849点热度 1人点赞 admin 阅读全文

Java下将Html转成PDF的方式,详见:https://blog.terrynow.com/2021/09/26/itextpdf-flying-saucer-complex-html-css-to-pdf/ 使用的是iTextPDF和flying saucer,以下是简要的操作说明: pom.xml: <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId&…

2023-08-08 0条评论 281点热度 0人点赞 admin 阅读全文

把Intellij IDEA升级到了最新版的2023.2以后,原来的SpringBoot打包成jar包,是使用的maven package的,但是打包的时候,有个问题,会输出如下这个warning警告 [WARNING] [WARNING] Plugin validation issues were detected in 4 plugin(s) [WARNING] [WARNING] * org.apache.maven.plugins:maven-resources-plugin:3.2.0 [WARNING]…

2023-08-06 0条评论 864点热度 0人点赞 admin 阅读全文

有时候在Controller中要redirect跳转到某一个地址,例如: @RequestMapping(value = "/somepath") public String somePath(HttpSession session) { User user = (User) session.getAttribute("user"); if (user != null) { return "someView"; } return "redirect:/login"; } // or @RequestMapping(…

2023-08-05 0条评论 160点热度 0人点赞 admin 阅读全文

前端Vue项目使用npm run启动的时候,遇到如下报错,无法启动 Error: error:0308010C:digital envelope routines::unsupported 具体信息如下: > [email protected] serve > vue-cli-service serve INFO Starting development server... 10% building 2/3 modules 1 active ...website/node_modules/cache-…

2023-07-29 0条评论 307点热度 0人点赞 admin 阅读全文
1234555