1. Page stuck when returning to the list page from the details page:
Problem description: When the el-Tabs page is jumped to the details page and then returned, the page crashes
Problem source: Element-UI bug
Solution :(1) lower the version and (2) wrap it in el-tabs with el-row and el-col.
2. For the implementation of v-for looping list plus view more and fold up functionality:
Problem source: Variable control needs to be resolved for respective lists
Solution: Create array variables from index, and assign the corresponding index position to the respective variable showMore = false as the default value. Use two more methods to view more: showMore = true; ShowMore = false when folded. The key is to get the length of the loop variable and assign it. Use the Watch method to monitor. Another point to note is that for variable assignments in arrays, consider whether methods are updated in real time.
Added: Methods for updating arrays or objects in vUE in real time: (1) built-in methods (2) vm.set or $set
The code is as follows: