@oniti/quasar-app-extension-vlank-auth 3.1.0 → 3.1.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oniti/quasar-app-extension-vlank-auth",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "Authentification",
5
5
  "author": "François BOUYER <francois@oniti.fr>",
6
6
  "license": "MIT",
package/src/boot/index.js CHANGED
@@ -41,7 +41,7 @@ export default boot(({ app, router, store }) => {
41
41
  let typeRightCheck = to.matched.find((r) => r.meta.typeRightCheck);
42
42
  typeRightCheck = typeRightCheck ? typeRightCheck.meta.typeRightCheck : "all";
43
43
 
44
- const getter_right_check = typeRightCheck === "any" ? "checkAny" : "checkAll";
44
+ const getter_right_check = typeRightCheck === "any" ? "auth/checkAny" : "auth/checkAll";
45
45
 
46
46
  let logoutOnUnsufisantRights = to.matched.find((r) =>
47
47
  r.meta.hasOwnProperty("logoutOnUnsufisantRights")
@@ -52,7 +52,7 @@
52
52
  </template>
53
53
 
54
54
  <script setup>
55
- import { ref, computed, watch } from 'vue'
55
+ import { ref, computed, watch, inject, onMounted } from 'vue'
56
56
  import { useRoute, useRouter } from 'vue-router'
57
57
  import { useStore } from 'vuex'
58
58
  import { useQuasar } from 'quasar'
@@ -5,7 +5,6 @@ export function SET_AUTH(state,user){
5
5
  export function SET_LOGOUT(state){
6
6
  state.user = null
7
7
  state.logged = false
8
- state.has_check = false
9
8
  }
10
9
 
11
10
  export function HAS_CHECK_AUTH ( state ) {