@goweekdays/layer-common 1.1.1 → 1.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/CHANGELOG.md +6 -0
- package/components/InvitationMain.vue +16 -4
- package/composables/useLocalAuth.ts +0 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -47,16 +47,20 @@
|
|
|
47
47
|
<v-tabs>
|
|
48
48
|
<v-tab
|
|
49
49
|
:to="{
|
|
50
|
-
name:
|
|
51
|
-
params:
|
|
50
|
+
name: props.route,
|
|
51
|
+
params: props.org
|
|
52
|
+
? { status: 'pending', org: props.org }
|
|
53
|
+
: { status: 'active' },
|
|
52
54
|
}"
|
|
53
55
|
>
|
|
54
56
|
Pending
|
|
55
57
|
</v-tab>
|
|
56
58
|
<v-tab
|
|
57
59
|
:to="{
|
|
58
|
-
name:
|
|
59
|
-
params:
|
|
60
|
+
name: props.route,
|
|
61
|
+
params: props.org
|
|
62
|
+
? { status: 'expired', org: props.org }
|
|
63
|
+
: { status: 'pending' },
|
|
60
64
|
}"
|
|
61
65
|
>
|
|
62
66
|
Expired
|
|
@@ -91,6 +95,10 @@
|
|
|
91
95
|
|
|
92
96
|
<script setup lang="ts">
|
|
93
97
|
const props = defineProps({
|
|
98
|
+
org: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: "",
|
|
101
|
+
},
|
|
94
102
|
status: {
|
|
95
103
|
type: String,
|
|
96
104
|
default: "active",
|
|
@@ -110,6 +118,10 @@ const props = defineProps({
|
|
|
110
118
|
params: {},
|
|
111
119
|
}),
|
|
112
120
|
},
|
|
121
|
+
route: {
|
|
122
|
+
type: String,
|
|
123
|
+
default: "index",
|
|
124
|
+
},
|
|
113
125
|
});
|
|
114
126
|
|
|
115
127
|
const organization = (useRoute().params.organization as string) ?? "";
|
|
@@ -8,14 +8,6 @@ export default function useLocalAuth() {
|
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
// Get access token from cookies
|
|
12
|
-
const accessToken = useCookie("accessToken", cookieConfig).value;
|
|
13
|
-
|
|
14
|
-
if (!accessToken) {
|
|
15
|
-
// Redirect to login page if no access token
|
|
16
|
-
navigateTo({ name: "index" });
|
|
17
|
-
}
|
|
18
|
-
|
|
19
11
|
const user = useCookie("user", cookieConfig).value;
|
|
20
12
|
|
|
21
13
|
const { data: getCurrentUserReq, error: getCurrentUserErr } =
|