index.vue 703 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <div></div>
  3. </template>
  4. <script>
  5. import { websitContractSignSign } from '@/api/networkContractSigning'
  6. export default {
  7. mounted() {
  8. if (this.$route?.query?.id) {
  9. websitContractSignSign({
  10. id: this.$route?.query?.id,
  11. returnUrl: `${window.location.href.split('#')?.[0]}#/networkSigning?id=${this.$route?.query?.id}`
  12. }).then(res => {
  13. if (res.data.jump) {
  14. window.location.href = res.data.url
  15. } else {
  16. window.location.href = `${
  17. window.location.href.split('#')?.[0]
  18. }#/setting/networkSigning/networkContractSigning?id=${this.$route?.query?.id}`
  19. }
  20. })
  21. }
  22. }
  23. }
  24. </script>
  25. <style></style>