💪 optimize: 优化代码

This commit is contained in:
wangsongsole 2023-06-30 09:22:50 +08:00
parent eb68b36ecd
commit eeb35e93b0
1 changed files with 1 additions and 4 deletions

View File

@ -231,10 +231,7 @@
/* 动态font */
fonts () {
const { cash_amount_type, min_denomination, max_denomination } = this.goodsInfo.entity;
const defaultCss = {
b: '0.2rem',
a: '0.32rem'
};
const defaultCss = { b: '0.2rem', a: '0.32rem' };
if (cash_amount_type === '2') {
const count = String(parseFloat(min_denomination)).length + String(parseFloat(max_denomination)).length + 1;
if (count > 6) {