摘要: 安装插件vite-plugin-vue-setup-extend npm i vite-plugin-vue-setup-extend 配置vite.config.ts文件 import fileURLToPath,URL from 'node:url' import defineconfig fr 阅读全文
posted @ 2024-07-04 17:48 xiaowei123456 阅读(8) 评论(0) 推荐(0) 编辑
摘要: springboot的filter过滤器的用法 在项目下创建一个包,包名为filter 在filter包下创建一个类型,命名随便 然后配置过滤器 给类加上过滤器的注释@WebFilter(filename = "filtername",urlPatterns = "/*")filtername用来设 阅读全文
posted @ 2024-03-27 19:28 xiaowei123456 阅读(22) 评论(0) 推荐(0) 编辑
摘要: macbook使用php的fastadmin框架验证码不显示解决办法 给php安装freetype插件 freetype下载链接 解压插件 进入命令行工具,然后进到刚才解压的文件目录中 然后执行该命令 ./configure --enable-static --enable-shared (没有指定 阅读全文
posted @ 2024-03-24 16:33 xiaowei123456 阅读(234) 评论(0) 推荐(0) 编辑
摘要: macbook(M1芯片)搭建php+nginx运行环境 php 安装php brew install php // 低版本php需要这样安装 brew install shivammathur/php/php@7.4 配置环境变量(低版本的php才需要) echo 'export PATH="/u 阅读全文
posted @ 2024-03-24 16:26 xiaowei123456 阅读(397) 评论(0) 推荐(0) 编辑
摘要: thinkphp6中jwt的使用 安装JWT插件 composer require firebase/php-jwt 创建User模型 php think make:model User 创建User控制器 php think make:controller User 封装创建token函数,要在U 阅读全文
posted @ 2024-03-23 17:43 xiaowei123456 阅读(277) 评论(0) 推荐(0) 编辑
摘要: uniapp脚手架中vue3项目配置@,并且在vscode中有提示 在vite.config.js中配置一下代码 import { defineConfig } from "vite"; import uni from "@dcloudio/vite-plugin-uni"; import { re 阅读全文
posted @ 2023-11-18 11:11 xiaowei123456 阅读(150) 评论(0) 推荐(0) 编辑
摘要: # css实现自动适配移动端的效果 ## 使用的库 使用到的库 **[lib-flexible](https://github.com/amfe/lib-flexible)** ## 使用方法 1. 使用script标签引入 ```html ``` ## 使用注意事项!!! 1. 使用前必须要清掉h 阅读全文
posted @ 2023-07-12 10:53 xiaowei123456 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 解决办法 如果您是vue-cli模式的项目,还需要在项目根目录的vue.config.js文件中进行如下配置: // vue.config.js,如没有此文件则手动创建 module.exports = { transpileDependencies: ['uview-ui'] } 阅读全文
posted @ 2023-04-27 12:25 xiaowei123456 阅读(834) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.jianshu.com/p/ecc240dd746d 阅读全文
posted @ 2023-02-07 10:50 xiaowei123456 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 在 src 或者 src 的子目录里创建一个 *.d.ts 文件,例如 uni.d.ts 然后再文件声明变量 interface Uni { checkedIdCard: { (value: string): boolean; }; } 最后一定要在ts.cofig.json文件上加上这个 { "c 阅读全文
posted @ 2023-02-07 10:49 xiaowei123456 阅读(248) 评论(0) 推荐(0) 编辑