|
@@ -6,7 +6,23 @@
|
|
|
import { websitContractSignSign } from '@/api/networkContractSigning'
|
|
|
export default {
|
|
|
mounted() {
|
|
|
- if (this.$route?.query?.id) {
|
|
|
+ if (this.$route?.query?.itemId) {
|
|
|
+ websitContractSignSingleSign({
|
|
|
+ id: this.$route?.query?.id,
|
|
|
+ returnUrl: `${window.location.href.split('#')?.[0]}#/networkSigning?id=${this.$route?.query?.id}&itemId=${
|
|
|
+ this.$route?.query?.itemId
|
|
|
+ }`,
|
|
|
+ itemId: this.$route?.query?.itemId
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.jump) {
|
|
|
+ window.open(res.data.url, '_blank')
|
|
|
+ } else {
|
|
|
+ window.location.href = `${
|
|
|
+ window.location.href.split('#')?.[0]
|
|
|
+ }#/setting/networkSigning/networkContractSigning?id=${this.$route?.query?.id}`
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (this.$route?.query?.id) {
|
|
|
websitContractSignSign({
|
|
|
id: this.$route?.query?.id,
|
|
|
returnUrl: `${window.location.href.split('#')?.[0]}#/networkSigning?id=${this.$route?.query?.id}`
|