- fix: authenticate_withUser mancava su alcuni...
- fix: '/signin' non riproponeva il login nel caso il token fosse invalido
This commit is contained in:
@@ -10,6 +10,7 @@ import { CFirstPageApp } from '@src/components/CFirstPageApp'
|
||||
import { computed, onMounted, ref, watch } from 'vue'
|
||||
import { CProvaPao } from '@src/components/CProvaPao'
|
||||
import { tools } from '@tools'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
|
||||
import { Vue } from 'vue-class-component'
|
||||
|
||||
@@ -133,7 +134,12 @@ export default {
|
||||
|
||||
if (chiamaautologin) {
|
||||
// console.log('CHIAMA autologin_FromLocalStorage')
|
||||
await userStore.autologin_FromLocalStorage($router, $q)
|
||||
const ris = await userStore.autologin_FromLocalStorage($router, $q)
|
||||
if (ris?.code === toolsext.ERR_RETRY_LOGIN) {
|
||||
setTimeout(() => {
|
||||
$router.replace('/signin');
|
||||
}, 100);
|
||||
}
|
||||
} else {
|
||||
globalStore.finishLoading = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user