Эх сурвалжийг харах

reactor:105 部分市州通用-知识库优化;

zhangchong 5 сар өмнө
parent
commit
906fd6b723

+ 5 - 1
src/views/auxiliary/clearCache/index.vue

@@ -42,7 +42,7 @@
 </template>
 
 <script lang="tsx" setup name="auxiliaryClearCache">
-import { computed, FunctionalComponent, onMounted, reactive, ref, unref } from 'vue';
+import { computed, FunctionalComponent, onActivated, onMounted, reactive, ref, unref } from 'vue';
 import { type CheckboxValueType, ElMessage, ElMessageBox, FormInstance, ElCheckbox } from 'element-plus';
 import { clearCache, getAllCacheKey } from '@/api/auxiliary/clearCache';
 import { auth } from '@/utils/authFunction';
@@ -193,6 +193,10 @@ const onDelete = (row: any) => {
 		})
 		.catch(() => {});
 };
+const virtuallyTableRef = ref<RefType>();
+onActivated(() => {
+	virtuallyTableRef.value.scrollToTop(0); // 回到顶部
+});
 // 页面加载时
 onMounted(() => {
 	queryList();