Skip to content

Commit 76c7045

Browse files
committed
解决 router.push 带参数跳转问题
1 parent c7a4978 commit 76c7045

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cool-admin-vue",
3-
"version": "3.2.1",
3+
"version": "3.2.2",
44
"scripts": {
55
"serve": "vue-cli-service serve",
66
"build": "vue-cli-service build",

src/cool/modules/base/components/process/index.vue

+4-14
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ export default {
104104
},
105105
106106
adScroll(index) {
107+
if (index < 0) {
108+
index = 0;
109+
}
110+
107111
const el = this.$refs[`item-${index}`][0];
108112
109113
if (el) {
@@ -131,7 +135,6 @@ export default {
131135
align-items: center;
132136
height: 30px;
133137
position: relative;
134-
135138
&__left,
136139
&__right {
137140
background-color: #fff;
@@ -140,32 +143,26 @@ export default {
140143
padding: 0 2px;
141144
border-radius: 3px;
142145
cursor: pointer;
143-
144146
&:hover {
145147
background-color: #eee;
146148
}
147149
}
148-
149150
&__left {
150151
margin-right: 10px;
151152
}
152-
153153
&__right {
154154
margin-left: 10px;
155155
}
156-
157156
&__scroller {
158157
width: 100%;
159158
flex: 1;
160159
overflow-x: auto;
161160
overflow-y: hidden;
162161
white-space: nowrap;
163-
164162
&::-webkit-scrollbar {
165163
display: none;
166164
}
167165
}
168-
169166
&__item {
170167
display: inline-flex;
171168
align-items: center;
@@ -178,40 +175,33 @@ export default {
178175
margin-right: 10px;
179176
color: #909399;
180177
cursor: pointer;
181-
182178
&:last-child {
183179
margin-right: 0;
184180
}
185-
186181
i {
187182
font-size: 14px;
188183
width: 0;
189184
overflow: hidden;
190185
transition: all 0.3s;
191-
192186
&:hover {
193187
color: #fff;
194188
background-color: $color-primary;
195189
}
196190
}
197-
198191
&:hover {
199192
.el-icon-close {
200193
width: 14px;
201194
margin-left: 5px;
202195
}
203196
}
204-
205197
&.active {
206198
span {
207199
color: $color-primary;
208200
}
209-
210201
i {
211202
width: auto;
212203
margin-left: 5px;
213204
}
214-
215205
&:before {
216206
background-color: $color-primary;
217207
}

0 commit comments

Comments
 (0)