{"size": 916, "ext": "js", "max_stars_repo_path": "front/src/utils/mixin.js", "max_stars_repo_name": "tangyifei726tyf/Whitecoin-explorer", "max_stars_repo_stars_event_min_datetime": "2019-09-24T09:38:28.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-27T06:41:25.000Z", "max_issues_repo_path": "front/src/utils/mixin.js", "max_issues_repo_name": "tangyifei726tyf/Whitecoin-explorer", "max_issues_repo_issues_event_min_datetime": "2020-06-30T23:12:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T04:33:46.000Z", "max_forks_repo_path": "front/src/utils/mixin.js", "max_forks_repo_name": "tangyifei726tyf/Whitecoin-explorer", "max_forks_repo_forks_event_min_datetime": "2021-01-26T07:03:13.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-26T07:03:13.000Z"}
{"max_stars_count": 3, "max_issues_count": 7, "max_forks_count": 1, "avg_line_length": 28.625, "max_line_length": 91, "alphanum_fraction": 0.4727074236}
var mixin = {
  methods: {
    _mixin_address_jump: function (address) {
      let that = this;
      if (address.startsWith('CLN')) {
        this.$axios.post('/getContractStatis', {contractId: address}).then(function (res) {
          if (res.data.data) {
            that.$router.push({ path: `/contractOverview/${address}` });
          } else {
            that.$message({
              message: that.$t('alert.notSearch'),
              type: 'warning'
            });
          }
        });
      } else {
        this.$axios.post('/addrStatis',{address:address}).then(function (res) {
          if (res.data.data) {
            that.$router.push({ path: '/address', query: { address: address }});
          } else {
            that.$message({
              message: that.$t('alert.notSearch'),
              type: 'warning'
            });
          }
        });
      }
    }
  }
}
export default mixin;
