<template>
<page-meta :root-font-size="`${$store.state.Global.fontSize}px`"></page-meta>
<view class="home">
</view>
</template>
代码属于公司机密,只能提供关键部分
postcss.config.js如下
const path = require("path");
module.exports = {
parser: "postcss-comment",
plugins: {
"postcss-import": {
resolve(id, basedir, importoptions) {
if (id.startsWith('~@/')) {
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(3))
} else if (id.startsWith('@/')) {
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(2))
} else if (id.startsWith('/') && !id.startsWith('//')) {
return path.resolve(process.env.UNI_INPUT_DIR, id.substr(1))
}
return id
}
},
"autoprefixer": {
overrideBrowserslist: ["Android >= 4", "ios >= 8"],
remove: process.env.UNI_PLATFORM !== 'h5'
},
'postcss-px-to-viewport': {
unitToConvert: 'rpx',
viewportWidth: 1500,
unitPrecision: 5,
propList: ['*'],
viewportUnit: 'rem',
fontViewportUnit: 'rem',
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: false,
replace: true,
exclude: undefined,
include: undefined,
landscape: false,
},
'@dcloudio/vue-cli-plugin-uni/packages/postcss': {}
}
}
3 个回复
DCloud_iOS_XHY
你好,示例工程无法复现此问题,能否提供一个完整可复现问题的demo工程便于排查
982740
请问大佬,哪个IOS挂在后台,切换回来字体变大,您怎么解决的啊
9***@qq.com
楼主怎么解决问题的, 2024/06/21这bug还在呢