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

整理

上级 076e1734
......@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<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>
</head>
<body>
......
......@@ -3,7 +3,7 @@
<div class="login-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>
<!-- 表单区域 -->
......
......@@ -35,6 +35,8 @@
<el-pagination
class="pagination"
background
:key="elementui_page_component_key"
:current-page.sync="currentPage"
:page-size="pageSize"
:total="total"
@current-change="handleCurrentChange"
......@@ -54,7 +56,8 @@ export default {
// 用户列表数据
userlist: [],
loading: false,
currentPage: localStorage.getItem("lastPage") || 1,
elementui_page_component_key: 0,
currentPage: Number(localStorage.getItem("lastPage")) || 1,
pageSize: 5,
total: 0,
};
......@@ -65,13 +68,8 @@ export default {
this.initCartList();
},
mounted() {
console.log(this.$refs)
var lastPage = localStorage.getItem("lastPage");
if (lastPage) {
this.$nextTick(() => {
this.$refs.pagination.setCurrentPage(Number(lastPage));
});
}
this.currentPage = Number(localStorage.getItem("lastPage")) || 1;
this.elementui_page_component_key++;
},
methods: {
refreshPage() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册