Explorar o código

修改自适应

hongrunxia hai 4 meses
pai
achega
eb3fbce00c
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/components/Container/src/AdaptiveContainer.vue

+ 3 - 3
src/components/Container/src/AdaptiveContainer.vue

@@ -44,9 +44,9 @@ export default defineComponent({
 
     // 默认配置
     const defaultOptions = ref<Required<AdaptiveOptions>>({
-      width: window.innerWidth,
-      height: window.innerHeight,
-      baseWidth: window.innerWidth,
+      width: 1920,
+      height: 948,
+      baseWidth: 1920,
       minScale: 0.5,
       maxScale: 2,
       debounceTime: 100,