Skip to content

Commit dad5fcb

Browse files
author
Guillaume Chau
committed
test: debug
1 parent ff9be69 commit dad5fcb

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

packages/@vue/cli-ui/src/components/ProgressScreen.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
v-if="progress.progress !== -1"
4141
:value="progress.progress"
4242
/>
43+
44+
<div v-if="debug" class="debug"><pre>{{ debug }}</pre></div>
4345
</div>
4446
</template>
4547
</div>
@@ -58,6 +60,10 @@ export default {
5860
Progress
5961
],
6062
63+
props: {
64+
debug: String
65+
},
66+
6167
methods: {
6268
close () {
6369
this.progress = null

packages/@vue/cli-ui/src/graphql-api/connectors/logs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ exports.add = function (log, context) {
1919
context.pubsub.publish(channels.CONSOLE_LOG_ADDED, {
2020
consoleLogAdded: item
2121
})
22+
console.log(log)
2223
return item
2324
}
2425

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@
370370

371371
<ProgressScreen
372372
progress-id="project-create"
373+
:debug="debug"
373374
/>
374375
</div>
375376
</template>
@@ -422,7 +423,8 @@ export default {
422423
projectCreation: null,
423424
showCancel: false,
424425
showRemotePreset: false,
425-
showSavePreset: false
426+
showSavePreset: false,
427+
debug: ''
426428
}
427429
},
428430
@@ -518,11 +520,15 @@ export default {
518520
}
519521
}
520522
})
521-
this.$router.push({ name: 'project-home' })
523+
this.debug = 'MUTATION DONE'
522524
this.reset()
525+
this.$router.push({ name: 'project-home' })
526+
await this.$nextTick()
527+
this.debug = `ROUTER PUSH: ${this.$route.name}`
523528
} catch (e) {
524529
// eslint-disable-next-line no-console
525530
console.error(e)
531+
this.debug = `ERROR: ${e}`
526532
}
527533
}
528534
}

0 commit comments

Comments
 (0)