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)