Vue-element-admin framework development issues

1. About the paging of the vue-element-admin project, return to the default display of the first page to solve the problem


Reference: https://blog.csdn.net/xfmuchengxue/article/details/84992879

	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();
	}

Intelligent Recommendation

Use the vue-element-admin framework to call the back-end interface and cross-domain issues

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...

Vue builds vue-element-admin framework

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...

Vue Element Admin (Windown) of Vue framework

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  ...

Vue-element-admin framework quick start to mastery

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...

Recommend a vue-element-admin framework to everyone

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...

More Recommendation

Run the vue-element-admin framework locally

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...

Vue-element-admin framework is modified to use it yourself

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 ...

Questions about Vue-Admin-Element framework

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

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...

Vue-Element-Admin framework dynamic routing (2)

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...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top