<template>
  <iframe :src="iframeSrc" style="width: 100%; height: 100vh; border: none"></iframe>
</template>

<script>
export default {
  name: 'MallIframe',
  data() {
    return {
      iframeSrc: '',
    }
  },
  mounted() {
    console.log('🚀 ~ mounted:', window.location)
    // 增加路由参数

    this.iframeSrc =
      process.env.NODE_ENV === 'production'
        ? '/iws/mall-view/home?redirect=equipList'
        : 'http://localhost:8102/iws/mall-view/home?redirect=equipList'
    console.log('🚀 ~ this.iframeSrc:', this.iframeSrc)
  },
}
</script>
