itube-specs 0.0.435 → 0.0.439
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/components/ui/s-img.vue
CHANGED
package/composables/use-user.ts
CHANGED
|
@@ -109,6 +109,7 @@ export const useUser = (apiService) => {
|
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
const signOut = () => {
|
|
112
|
+
const {generateLink} = useGenerateLink();
|
|
112
113
|
const cookie = useCookie('jwtoken', { path: '/', secure: true, httpOnly: false });
|
|
113
114
|
cookie.value = undefined; // или null
|
|
114
115
|
document.cookie = "jwtoken=; path=/; domain=gay.cool; expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure";;
|
|
@@ -117,7 +118,7 @@ export const useUser = (apiService) => {
|
|
|
117
118
|
profile.value = null;
|
|
118
119
|
|
|
119
120
|
const router = useRouter();
|
|
120
|
-
router.push('/');
|
|
121
|
+
router.push(generateLink('/'));
|
|
121
122
|
};
|
|
122
123
|
|
|
123
124
|
return {
|