diff --git a/src/components/model-custom/index.vue b/src/components/model-custom/index.vue index 387d2122..1debf98c 100644 --- a/src/components/model-custom/index.vue +++ b/src/components/model-custom/index.vue @@ -132,7 +132,7 @@ watchEffect(() => { // 根据容器宽度来计算内部大小 const width = new_width - outer_spacing - internal_spacing - content_spacing - data_spacing - props.outerContainerPadding; // 获得对应宽度的比例 - const scale_number = width / new_width; + const scale_number = width / 390; scale.value = scale_number > 0 ? scale_number : 0; }); //#endregion diff --git a/src/views/layout/components/main/index.vue b/src/views/layout/components/main/index.vue index 8b6e6a4b..4eeb8bc4 100644 --- a/src/views/layout/components/main/index.vue +++ b/src/views/layout/components/main/index.vue @@ -106,6 +106,8 @@