mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-25 16:48:56 -06:00
fix(ui): wait for CWD reset when entering project main view
This commit is contained in:
@@ -2,15 +2,30 @@
|
||||
<div class="project-home page">
|
||||
<ProjectNav/>
|
||||
|
||||
<div class="content">
|
||||
<div v-if="ready" class="content">
|
||||
<router-view/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PROJECT_CWD_RESET from '../graphql/projectCwdReset.gql'
|
||||
|
||||
export default {
|
||||
name: 'ProjectHome'
|
||||
name: 'ProjectHome',
|
||||
|
||||
data () {
|
||||
return {
|
||||
ready: false
|
||||
}
|
||||
},
|
||||
|
||||
async created () {
|
||||
await this.$apollo.mutate({
|
||||
mutation: PROJECT_CWD_RESET
|
||||
})
|
||||
this.ready = true
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user