refactor: ♻️ 优化变量命名

This commit is contained in:
ray
2024-10-31 01:10:20 +08:00
parent dd81dd6793
commit 702856f31f

View File

@@ -1,5 +1,5 @@
<template> <template>
<section class="app-main" :style="{ height: height }"> <section class="app-main" :style="{ height: appMainHeight }">
<router-view> <router-view>
<template #default="{ Component, route }"> <template #default="{ Component, route }">
<transition <transition
@@ -21,7 +21,7 @@ import variables from "@/styles/variables.module.scss";
// 缓存页面集合 // 缓存页面集合
const cachedViews = computed(() => useTagsViewStore().cachedViews); const cachedViews = computed(() => useTagsViewStore().cachedViews);
const height = computed(() => { const appMainHeight = computed(() => {
if (useSettingsStore().tagsView) { if (useSettingsStore().tagsView) {
return `calc(100vh - ${variables["navbar-height"]} - ${variables["tags-view-height"]})`; return `calc(100vh - ${variables["navbar-height"]} - ${variables["tags-view-height"]})`;
} else { } else {