管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-01-16 21ddc9ec1b1b76d2ce20e512328e65acaf1af2bf
src/views/PackageTwo/WareInspection.vue
@@ -11,6 +11,7 @@
</template>
<script>
import { getToken } from "@/utils/auth";
export default {
  data() {
    return {
@@ -19,13 +20,18 @@
  },
  methods: {
    showChangeIfream(res) {
      if (res.indexOf('token=') != -1) {
        res = res + getToken();
      }
      this.$store.state.reporturl = res;
      this.reportUrl = res;
      // console.log("2", this.reportUrl)
    }
  },
  mounted() {
    this.reportUrl = this.$store.reporturl;
    this.showChangeIfream(this.$store.reporturl)
    // console.log("1", this.reportUrl)
    this.$bus.$on('changeNaveUrl', (res) => {
      this.showChangeIfream(res)
@@ -42,5 +48,6 @@
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #303030;
}
</style>