diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue index 6565259..3ed21aa 100644 --- a/src/renderer/src/App.vue +++ b/src/renderer/src/App.vue @@ -41,7 +41,7 @@ - + 随机数复制 @@ -64,6 +64,7 @@ export default { _: _, dayjs: dayjs, isVip: true, + rows: 27, form: { min: 1, max: 10, @@ -154,6 +155,10 @@ export default { this.isVip = true } } + // 监听窗口大小并获取高度 + window.onresize = () => { + this.rows = Math.floor((window.innerHeight-45) / 22) + } }, }