优化移动端适配和路由处理逻辑

This commit is contained in:
wangqiao
2025-09-01 10:16:42 +08:00
parent 7a8f096513
commit 7ecff344de
3 changed files with 7 additions and 4 deletions

View File

@ -41,7 +41,7 @@ export default defineNuxtConfig({
minPixelValue: 1, // 默认值1小于或等于1px则不进行转换
mediaQuery: true, // 是否在媒体查询的css代码中也进行转换默认false
replace: true, // 是否转换后直接更换属性值
exclude: [/node_modules/], // 设置忽略文件用正则做目录名匹配最好不要排除node_modules 文件,排除后在项目中会发现字体不能跟随页面放大
exclude: [/node_modules/, /^(?!.*\/pages\/m\/).*$/], // 排除node_modules和非pages/m目录下的文件
landscape: false, // 是否处理横屏情况
// 只转换pages下的m文件
include: [/pages\/m/],