Log.js 430 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. data() {
  3. return {
  4. deploy_logs : []
  5. }
  6. },
  7. methods: {
  8. getList(){
  9. if (this.$route.query.id) {
  10. this.$$api_deployment_getProjectDeployLogs({
  11. id: this.$route.query.id
  12. }, (data) => {
  13. this.deploy_logs = data.content;
  14. });
  15. }
  16. }
  17. },
  18. mounted() {
  19. this.getList();
  20. },
  21. watch: {
  22. $route(to, from){
  23. this.getList();
  24. }
  25. }
  26. }