Vue
uniapp获取当前路径
admin 发表于2024-12-13 浏览412 评论0
// 获取当前页面栈数组 const pages = getCurrentPages(); // 获取当前页面(数组中的最后一个) const currentPage = pages[pages.length - 1]; // 获取当前页面路径 const currentPath = currentPage.route; // 全部路径 const fullPath = pages[pages.length - 1].$page.fullPath; console.log(currentPath);
Linux服务器
Linux-使用 ACME 申请证书并自动续期
admin 发表于2024-12-12 浏览317 评论0
一、安装Acme脚本
第1种方法
curl https://get.acme.sh | sh
如果第一种
Mysql
MySQL报错:sql_mode=only_full_group_by解决方法
admin 发表于2024-12-03 浏览321 评论0
vi /etc/my.cnf
在[mysqld]里,添加以下语句
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION