1. Store the current page number
getList() {
sessionStorage.setItem('pagination',this.listQuery.pageNum)
},
2. Get the page number from sessionStorage and assign it to pageNum
created() {
this.$nextTick(() => {
this.listQuery.pageNum=Number(sessionStorage.getItem('pagination')) || 1
})
},
3. Clear the stored page number
beforeRouteLeave(to,from,next){
if (to.name != "postMould_details" && to.name != "postMould_edit") {
sessionStorage.removeItem('pagination')
}
next();
}
Preface vue-element-admin official git addresshttps://github.com/PanJiaChen/vue-element-admin For development, you need to call an external interface, and it also involves cross-domain issues. All Bai...
Project initialization vue-element-admin source code If npm reports an error Cannot find module'core-js/modules/es6.regexp.constructor', you can install itcnpm install core-js@2Recognize es6 grammar S...
1. First of all, you need to view node.js First of all 2. clone framework If an error occurs, delete the following Successful installation ...
At the end of the year, the company has not been too busy lately. It feels that the Internet industry has experienced a cold winter this year and is not a hot track like the previous two years. The op...
Framework introduction vue-admin-beautiful is always based on the latest dependency on the latest architecture development, while ensuring the stability of the dependency, supports routing caches abov...
1. Install git, nodejs 2.git clone https://github.com/PanJiaChen/vue-element-admin.git clone the project 3. Open cmd, enter the project folder, enter node -v npm -v View version informatio...
Simply record the use of this framework, modify the interface to your own project 1. Project initialization (streamlined project) First of all, VIEWs All except the page delete (subsequent views, you ...
The Vue-Admin-Element framework is required for the form of the packaged API /* GET request use param POST request uses DATA */ About POST request, If the transfer parameter can be empty, the adjustme...
Vue-element-admin framework install failed problem Final solution Problem environment Error Description / Log Fill 1、node-gyp 2, Python version 3、canvas Final solution Final solution Project Issuse, c...
Reference: https://www.cnblogs.com/haoxianrui/p/13676619.html File modification Specific modification and changes can be compared to the original file, minimal changes to the framework. Interface requ...