From 51ba2672d153c172b6bc4d62f3df0edc8f621870 Mon Sep 17 00:00:00 2001 From: 罗广辉 <guanghui.luo@foxmail.com> Date: Thu, 26 Jun 2025 18:02:06 +0800 Subject: [PATCH] feat: 样式自适应 --- src/main.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index e24d589..7b16e6f 100644 --- a/src/main.js +++ b/src/main.js @@ -95,6 +95,9 @@ app.config.globalProperties.$dayjs = dayjs app.config.globalProperties.website = website app.config.globalProperties.getScreen = getScreen +app.config.globalProperties.pxToVh = height => height / 10.8 + 'vh' +app.config.globalProperties.pxToRem = width => width * 0.1 + 'rem' + app.use(error) app.use(i18n) app.use(store) -- Gitblit v1.9.3