adata-ui 2.0.60 → 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.reload()
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.60",
4
+ "version": "2.0.61",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",