From 036fd1835e6060d7fec04a05310433fe32f2036a Mon Sep 17 00:00:00 2001 From: 罗广辉 <guanghui.luo@foxmail.com> Date: Thu, 26 Jun 2025 18:04:44 +0800 Subject: [PATCH] Merge branch 'test' into all_setting_styles --- src/main.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index 58ae120..c38114f 100644 --- a/src/main.js +++ b/src/main.js @@ -99,6 +99,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