adata-ui 2.0.59 → 2.0.61
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.
|
@@ -7,6 +7,8 @@ const { $toast } = useNuxtApp()
|
|
|
7
7
|
const { myLayer, commonAuth } = useAppConfig()
|
|
8
8
|
const { t, locale } = useI18n()
|
|
9
9
|
|
|
10
|
+
const regex = /^\/counterparty\/main\/company\/\d+\/basic-info$/;
|
|
11
|
+
|
|
10
12
|
const { loginModal, registrationModal, recoveryModal, confirmAccountOtpModal, twoFactorModal, intermediateState } = useIdModals()
|
|
11
13
|
|
|
12
14
|
const authApiURL = commonAuth.authApiURL
|
|
@@ -126,8 +128,15 @@ async function submit() {
|
|
|
126
128
|
}).value = access_token
|
|
127
129
|
}
|
|
128
130
|
$toast.success(t('reuse.successfully'))
|
|
131
|
+
|
|
129
132
|
loginModal.value = false
|
|
130
|
-
window.location.
|
|
133
|
+
const path = window.location.pathname;
|
|
134
|
+
|
|
135
|
+
if (regex.test(path)) {
|
|
136
|
+
navigateTo(`/company/${path.split("/")[4]}`)
|
|
137
|
+
} else {
|
|
138
|
+
window.location.reload()
|
|
139
|
+
}
|
|
131
140
|
}
|
|
132
141
|
else {
|
|
133
142
|
confirmAccountOtpModal.value = true
|
|
@@ -125,7 +125,7 @@ onBeforeUnmount(() => {
|
|
|
125
125
|
</div>
|
|
126
126
|
<button
|
|
127
127
|
v-else
|
|
128
|
-
class="text-blue-700 dark:text-blue-500 flex items-center gap-2"
|
|
128
|
+
class="text-blue-700 dark:text-blue-500 flex items-center gap-2 mx-auto"
|
|
129
129
|
@click="onResend"
|
|
130
130
|
:disabled="isResendLoading"
|
|
131
131
|
>
|