adata-ui 2.0.62 → 2.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
const { t } = useI18n()
|
|
3
3
|
const { confirmSuccessfulModal } = useIdModals()
|
|
4
4
|
const regex = /^\/counterparty\/main\/company\/\d+\/basic-info$/;
|
|
5
|
+
const { myLayer } = useAppConfig()
|
|
6
|
+
const mode = myLayer.mode
|
|
5
7
|
|
|
6
8
|
function onClose() {
|
|
7
9
|
confirmSuccessfulModal.value = false
|
|
@@ -9,7 +11,7 @@ function onClose() {
|
|
|
9
11
|
const path = window.location.pathname;
|
|
10
12
|
|
|
11
13
|
if (regex.test(path)) {
|
|
12
|
-
navigateTo(
|
|
14
|
+
navigateTo(`https://pk.${mode}.kz/company/${path.split("/")[4]}`, { external: true })
|
|
13
15
|
} else {
|
|
14
16
|
window.location.reload()
|
|
15
17
|
}
|
|
@@ -7,6 +7,7 @@ const { $toast } = useNuxtApp()
|
|
|
7
7
|
const { myLayer, commonAuth } = useAppConfig()
|
|
8
8
|
const { t, locale } = useI18n()
|
|
9
9
|
|
|
10
|
+
const mode = myLayer.mode
|
|
10
11
|
const regex = /^\/counterparty\/main\/company\/\d+\/basic-info$/;
|
|
11
12
|
|
|
12
13
|
const { loginModal, registrationModal, recoveryModal, confirmAccountOtpModal, twoFactorModal, intermediateState } = useIdModals()
|
|
@@ -133,7 +134,7 @@ async function submit() {
|
|
|
133
134
|
const path = window.location.pathname;
|
|
134
135
|
|
|
135
136
|
if (regex.test(path)) {
|
|
136
|
-
navigateTo(
|
|
137
|
+
navigateTo(`https://pk.${mode}.kz/company/${path.split("/")[4]}`, { external: true })
|
|
137
138
|
} else {
|
|
138
139
|
window.location.reload()
|
|
139
140
|
}
|
|
@@ -5,6 +5,8 @@ import IdOtpInput from '#adata-ui/components/modals/id/IdOtpInput.vue'
|
|
|
5
5
|
const { $toast } = useNuxtApp()
|
|
6
6
|
const { t, locale } = useI18n()
|
|
7
7
|
const { commonAuth } = useAppConfig()
|
|
8
|
+
const { myLayer } = useAppConfig()
|
|
9
|
+
const mode = myLayer.mode
|
|
8
10
|
|
|
9
11
|
const { twoFactorModal, intermediateState } = useIdModals()
|
|
10
12
|
|
|
@@ -67,7 +69,7 @@ async function onConfirm() {
|
|
|
67
69
|
const path = window.location.pathname;
|
|
68
70
|
|
|
69
71
|
if (regex.test(path)) {
|
|
70
|
-
navigateTo(
|
|
72
|
+
navigateTo(`https://pk.${mode}.kz/company/${path.split("/")[4]}`, { external: true })
|
|
71
73
|
} else {
|
|
72
74
|
window.location.reload()
|
|
73
75
|
}
|