Explorar o código

日志清空后重置页码和总数

偶是小菜鸟 %!s(int64=5) %!d(string=hai) anos
pai
achega
c6ba4d987d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/page/logs/index.vue

+ 2 - 0
src/page/logs/index.vue

@@ -102,6 +102,8 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
+        this.page.currentPage = 1;
+        this.page.total = 0;
         this.$store.commit('CLEAR_LOGS')
         this.$parent.$parent.box = false
         this.$message.success( '清空成功!')