module.exports = { data() { return { deploy_logs : [] } }, methods: { getList(){ if (this.$route.query.id) { this.$$api_deployment_getProjectDeployLogs({ id: this.$route.query.id }, (data) => { this.deploy_logs = data.content; }); } } }, mounted() { this.getList(); }, watch: { $route(to, from){ this.getList(); } } }