Skip to content

Commit

Permalink
little adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki committed Dec 6, 2023
1 parent 6b8c76b commit 973fbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/unocss-base/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function presetMpx (options = {}) {
const value = i[1]
if (typeof value === 'string' && remRE.test(value)) {
i[1] = value.replace(remRE, (_, p1) => process.env.MPX_CURRENT_TARGET_MODE === 'web'
? `${p1 * baseFontSize * +(100 / 750).toFixed(8)}vw`
? `${p1 * baseFontSize * (100 / 750).toFixed(8)}vw`
: `${p1 * baseFontSize}rpx`)
}
})
Expand Down

0 comments on commit 973fbd9

Please sign in to comment.