mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-27 14:52:56 +00:00
refactor: 移除数据大屏页面及相关组件,更新滚动容器逻辑与配置
1. 移除dashboard数据大屏页面及全部依赖的图表、统计组件 2. 重构主滚动容器选择逻辑,统一使用getMainScrollEl获取滚动元素 3. 更新配置项,添加TRUSTED_PROXY_HOPS与IP2REGION相关配置 4. 替换IP归属地查询为离线本地解析,移除相关HTTP请求配置 5. 简化OAuth与微信小程序登录的background_tasks参数传递 6. 修复系统参数描述与前端提示文案,更新alembic版本清理逻辑 7. 简化页面滚动重置逻辑,过滤隐藏标签页
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useCommon } from "@/hooks/core/useCommon";
|
||||
import { getMainScrollEl, useCommon } from "@/hooks/core/useCommon";
|
||||
|
||||
defineOptions({ name: "FaBackToTop" });
|
||||
|
||||
@@ -29,8 +29,7 @@ const showButton = ref(false);
|
||||
const scrollThreshold = 300;
|
||||
|
||||
onMounted(() => {
|
||||
const scrollContainer =
|
||||
document.getElementById("app-scroll-main") ?? document.getElementById("app-main");
|
||||
const scrollContainer = getMainScrollEl();
|
||||
if (scrollContainer) {
|
||||
const { y } = useScroll(scrollContainer);
|
||||
watch(y, (newY: number) => {
|
||||
|
||||
Reference in New Issue
Block a user