Skip to content

Commit db2423f

Browse files
author
张晨曦
committed
fix bugs 钉一钉功能
1 parent 44d7cb9 commit db2423f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web/src/dss/module/header/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ export default {
358358
if (this.$route.query.workspaceId) {
359359
GetCollections(this.$route.query.workspaceId).then(data => {
360360
let collections = data.favorites || [];
361+
while( collections.length > 5 ) {
362+
collections.pop();
363+
}
361364
this.collections = collections.map(item => {
362365
return {
363366
...item,

0 commit comments

Comments
 (0)