fix: selects
This commit is contained in:
@@ -59,7 +59,7 @@ async function setRoutes() {
|
||||
const componentName = item.component
|
||||
const [, folder] = componentName.split('/')
|
||||
const componentPath = `/src${componentName}`
|
||||
|
||||
|
||||
|
||||
let modules =
|
||||
folder === 'views' ? viewModules : componentModules
|
||||
@@ -80,6 +80,8 @@ async function setRoutes() {
|
||||
meta: item.meta ? JSON.parse(item.meta) : {}
|
||||
})
|
||||
}
|
||||
|
||||
// await router.replace(router.currentRoute.value.fullPath)
|
||||
}
|
||||
|
||||
await setRoutes()
|
||||
|
||||
@@ -51,3 +51,14 @@ export async function initCountryCurrency() {
|
||||
console.error('Failed to fetch languages:', error)
|
||||
}
|
||||
}
|
||||
|
||||
export async function switchLocalization() {
|
||||
try {
|
||||
await useFetchJson('/api/v1/public/auth/update-choice', {
|
||||
method: 'POST'
|
||||
})
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user