adata-ui 2.0.82 → 2.0.83
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.
|
@@ -8,6 +8,7 @@ const { $toast } = useNuxtApp()
|
|
|
8
8
|
const { commonAuth } = useAppConfig()
|
|
9
9
|
const { t, locale } = useI18n()
|
|
10
10
|
const { pk, landing } = useUrls()
|
|
11
|
+
const route = useRoute()
|
|
11
12
|
|
|
12
13
|
const regex = /^\/counterparty\/main\/company\/\d+\/basic-info$/;
|
|
13
14
|
|
|
@@ -134,10 +135,14 @@ async function submit() {
|
|
|
134
135
|
|
|
135
136
|
loginModal.value = false
|
|
136
137
|
const path = window.location.pathname;
|
|
138
|
+
const redirectUrl = route.query.redirect
|
|
137
139
|
|
|
138
140
|
if (regex.test(path)) {
|
|
139
141
|
navigateTo(`${pk}/company/${path.split("/")[4]}`, { external: true })
|
|
140
|
-
}
|
|
142
|
+
}else if (redirectUrl) {
|
|
143
|
+
navigateTo(redirectUrl as string, { external: true })
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
141
146
|
window.location.reload()
|
|
142
147
|
}
|
|
143
148
|
}
|
|
@@ -127,8 +127,8 @@ const closeMessage = () => {
|
|
|
127
127
|
v-if="!isOpenNotification || !systemMessage"
|
|
128
128
|
class="hidden min-h-10 bg-gray-50 dark:bg-gray-950 lg:block"
|
|
129
129
|
>
|
|
130
|
-
<div class="a-container flex justify-between py-2 text-sm">
|
|
131
|
-
<div class="flex items-center">
|
|
130
|
+
<div class="a-container flex justify-between py-2 items-center text-sm">
|
|
131
|
+
<div class="flex items-center leading-[24px]">
|
|
132
132
|
<div v-for="currency in currencies" :key="currency.currency" class="mr-4 flex gap-2">
|
|
133
133
|
<div class="flex items-center">
|
|
134
134
|
<component
|