|
|
@@ -158,6 +158,10 @@ import { useUserStore } from '@/stores/user'
|
|
|
|
|
|
const { user } = storeToRefs(useUserStore())
|
|
|
const where = ref({})
|
|
|
+const roles = user.roles
|
|
|
+if (roles.includes('user')) {
|
|
|
+ where.value.userId = user.id
|
|
|
+}
|
|
|
const isAdmin = inject('isAdmin')
|
|
|
const timeFormatter = useTimeFormatter()
|
|
|
const table = ref(null)
|