File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
packages/@vue/cli-ui/src/views Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -185,11 +185,7 @@ export default {
185
185
query: PLUGIN_INSTALLATION ,
186
186
fetchPolicy: ' netork-only' ,
187
187
result () {
188
- if (this .pluginInstallation .pluginId ) {
189
- this .tabId = ' config'
190
- } else {
191
- this .tabId = ' search'
192
- }
188
+ this .checkTab ()
193
189
},
194
190
}
195
191
},
@@ -203,6 +199,7 @@ export default {
203
199
mounted () {
204
200
requestAnimationFrame (() => {
205
201
this .$refs .searchInput .focus ()
202
+ this .checkTab ()
206
203
})
207
204
},
208
205
@@ -211,6 +208,16 @@ export default {
211
208
this .$router .push ({ name: ' project-home' })
212
209
},
213
210
211
+ checkTab () {
212
+ if (! this .pluginInstallation ) return
213
+
214
+ if (this .pluginInstallation .pluginId ) {
215
+ this .tabId = ' config'
216
+ } else {
217
+ this .tabId = ' search'
218
+ }
219
+ },
220
+
214
221
async installPlugin () {
215
222
try {
216
223
await this .$apollo .mutate ({
You can’t perform that action at this time.
0 commit comments