升级electron egg脚手架版本
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import autofit from 'autofit.js'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { getBrowserLang } from '@/utils'
|
||||
import { useTheme } from '@/hooks/useTheme'
|
||||
@@ -32,16 +31,14 @@ onMounted(() => {
|
||||
const language = globalStore.language ?? getBrowserLang()
|
||||
i18n.locale.value = language
|
||||
globalStore.setGlobalState('language', language as LanguageType)
|
||||
// 自动适配
|
||||
autofit.init({
|
||||
el: '#app',
|
||||
//dh: 720 * 1,
|
||||
//dw: 1280 * 1.2,
|
||||
dw: 1920 / 1.5,
|
||||
dh: 1080 / 1.2,
|
||||
resize: true,
|
||||
limit: 0.1
|
||||
})
|
||||
// 移除 autofit,使用 CSS 自适应
|
||||
// autofit.init({
|
||||
// el: '#app',
|
||||
// dw: 1440,
|
||||
// dh: 900,
|
||||
// resize: true,
|
||||
// limit: 0.1
|
||||
// })
|
||||
})
|
||||
|
||||
// element language
|
||||
@@ -59,4 +56,10 @@ const buttonConfig = reactive({ autoInsertSpace: false })
|
||||
|
||||
document.getElementById('loadingPage')?.remove()
|
||||
</script>
|
||||
<style scoped></style>
|
||||
<style scoped>
|
||||
#app {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user