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