提交 d590a62d 编写于 作者: 檀越@新空间's avatar 檀越@新空间 🐭

整理

上级 076e1734
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>kwan.png">
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
</head> </head>
<body> <body>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="login-box"> <div class="login-box">
<!-- 头像区域 --> <!-- 头像区域 -->
<div class="text-center avatar-box"> <div class="text-center avatar-box">
<img src="../assets/logo.png" class="img-thumbnail avatar" alt="" /> <img src="../assets/kwan.png" class="img-thumbnail avatar" alt="kwan的解忧杂货铺" />
</div> </div>
<!-- 表单区域 --> <!-- 表单区域 -->
...@@ -111,4 +111,4 @@ export default { ...@@ -111,4 +111,4 @@ export default {
box-shadow: 0 0 6px #efefef; box-shadow: 0 0 6px #efefef;
} }
} }
</style> </style>
\ No newline at end of file
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
<el-pagination <el-pagination
class="pagination" class="pagination"
background background
:key="elementui_page_component_key"
:current-page.sync="currentPage"
:page-size="pageSize" :page-size="pageSize"
:total="total" :total="total"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
...@@ -54,7 +56,8 @@ export default { ...@@ -54,7 +56,8 @@ export default {
// 用户列表数据 // 用户列表数据
userlist: [], userlist: [],
loading: false, loading: false,
currentPage: localStorage.getItem("lastPage") || 1, elementui_page_component_key: 0,
currentPage: Number(localStorage.getItem("lastPage")) || 1,
pageSize: 5, pageSize: 5,
total: 0, total: 0,
}; };
...@@ -65,13 +68,8 @@ export default { ...@@ -65,13 +68,8 @@ export default {
this.initCartList(); this.initCartList();
}, },
mounted() { mounted() {
console.log(this.$refs) this.currentPage = Number(localStorage.getItem("lastPage")) || 1;
var lastPage = localStorage.getItem("lastPage"); this.elementui_page_component_key++;
if (lastPage) {
this.$nextTick(() => {
this.$refs.pagination.setCurrentPage(Number(lastPage));
});
}
}, },
methods: { methods: {
refreshPage() { refreshPage() {
...@@ -127,4 +125,4 @@ export default { ...@@ -127,4 +125,4 @@ export default {
margin-right: 15px; margin-right: 15px;
font-size: 20px; font-size: 20px;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册