@@ -60,12 +60,20 @@ export default {
6060 },
6161 mounted () {
6262 let workspaceId = this .$route .query .workspaceId
63- this .lastWorkflowList = JSON .parse (localStorage .getItem (` work_flow_lists_${ workspaceId} ` )) || [];
63+ let workFlowLists = JSON .parse (localStorage .getItem (` work_flow_lists_${ workspaceId} ` )) || [];
64+ if ( workFlowLists .length > 5 ) {
65+ workFlowLists = workFlowLists .slice (0 , 5 )
66+ }
67+ this .lastWorkflowList = workFlowLists;
6468 eventbus .on (" tabListChange" , list => {
6569 if ( list .length > 0 ) {
6670 this .lastWorkflowList = list .slice ();
6771 } else {
68- this .lastWorkflowList = JSON .parse (localStorage .getItem (` work_flow_lists_${ workspaceId} ` )) || [];
72+ let workFlowLists = JSON .parse (localStorage .getItem (` work_flow_lists_${ workspaceId} ` )) || [];
73+ if ( workFlowLists .length > 5 ) {
74+ workFlowLists = workFlowLists .slice (0 , 5 )
75+ }
76+ this .lastWorkflowList = workFlowLists
6977 }
7078 });
7179 },
@@ -86,7 +94,7 @@ export default {
8694 align-items : center ;
8795 width : 100% ;
8896 height : 100% ;
89- background -color: #fff ;
97+ @include bg -color( #fff , $dark-workspace-body-bg-color ) ;
9098 .void-page-left {
9199 min-width : 240px ;
92100 margin-right : 106px ;
@@ -95,10 +103,11 @@ export default {
95103 height : 33px ;
96104 line-height : 33px ;
97105 text-align : left ;
106+ @include font-color ($light-text-color , $dark-text-color );
98107
99108 font-family : PingFangSC- Regular;
100109 font-size : 24px ;
101- color : rgba (0 , 0 , 0 , 0.65 );
110+ @include border-color ( rgba (0 , 0 , 0 , 0.65 ), $dark-border-color-base );
102111 font-weight : 400 ;
103112 }
104113 & -main {
@@ -109,13 +118,14 @@ export default {
109118 & -tip {
110119 font-family : PingFangSC- Regular;
111120 font-size : 14px ;
112- color : rgba (0 , 0 , 0 , 0.45 );
121+ @include border-color ( rgba (0 , 0 , 0 , 0.65 ), $dark-border-color-base );
113122 letter-spacing : 0 ;
114123 text-align : center ;
115124 line-height : 28px ;
116125 height : 28px ;
117126 font-weight : 400 ;
118127 margin : 16px 0px ;
128+ @include font-color ($light-text-color , $dark-text-color );
119129 }
120130 & -button {
121131 text-align : left ;
@@ -131,10 +141,11 @@ export default {
131141 height : 25px ;
132142 line-height : 25px ;
133143 padding : 16px 0px ;
144+ @include font-color ($light-text-color , $dark-text-color );
134145
135146 font-family : PingFangSC- Regular;
136147 font-size : 18px ;
137- color : rgba (0 , 0 , 0 , 0.65 );
148+ @include border-color ( rgba (0 , 0 , 0 , 0.65 ), $dark-border-color-base );
138149 font-weight : 400 ;
139150 }
140151 .void-page-right-main {
0 commit comments