Skip to content

Commit 0ba5e09

Browse files
author
Guillaume Chau
committed
fix(ui): improved remote preset checking
1 parent 40439b1 commit 0ba5e09

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

packages/@vue/cli-ui/src/views/ProjectCreate.vue

+18-5
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,25 @@ export default {
554554
},
555555
556556
watch: {
557-
'formData.remotePreset.url' (value) {
557+
'formData.remotePreset.url' () {
558558
this.debouncedCheckRemotePreset()
559+
},
560+
561+
'formData.remotePreset.clone' () {
562+
this.debouncedCheckRemotePreset()
563+
},
564+
565+
remoteNotGithub (value) {
566+
if (value) {
567+
this.$_oldClone = this.formData.remotePreset.clone
568+
this.formData.remotePreset.clone = value
569+
} else {
570+
this.formData.remotePreset.clone = this.$_oldClone
571+
}
572+
573+
if (!value) {
574+
this.checkRemotePreset()
575+
}
559576
}
560577
},
561578
@@ -657,10 +674,6 @@ export default {
657674
return
658675
}
659676
660-
if (this.remoteNotGithub) {
661-
this.formData.remotePreset.clone = true
662-
}
663-
664677
if (this.formData.remotePreset.clone) {
665678
this.remotePresetValid = true
666679
} else {

0 commit comments

Comments
 (0)