update
This commit is contained in:
@@ -7,8 +7,6 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
|
|||||||
if (!isTauri.value)
|
if (!isTauri.value)
|
||||||
return
|
return
|
||||||
|
|
||||||
console.log('pizda', to, from)
|
|
||||||
|
|
||||||
if (from?.name || !!to.redirectedFrom)
|
if (from?.name || !!to.redirectedFrom)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import chadApi from '#shared/chad-api'
|
import chadApi from '#shared/chad-api'
|
||||||
|
|
||||||
export default defineNuxtRouteMiddleware(async (to, from) => {
|
export default defineNuxtRouteMiddleware(async (to, from) => {
|
||||||
console.log('ya zdes')
|
|
||||||
const { me, setMe } = useAuth()
|
const { me, setMe } = useAuth()
|
||||||
|
|
||||||
if (!me.value && !from?.name) {
|
if (!me.value && !from?.name) {
|
||||||
|
|||||||
@@ -17,14 +17,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
console.log('jopa')
|
|
||||||
|
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
name: 'Updater',
|
name: 'Updater',
|
||||||
layout: 'blank',
|
layout: 'blank',
|
||||||
auth: false,
|
auth: false,
|
||||||
middleware: () => {
|
middleware: () => {
|
||||||
console.log('lastUpdate')
|
|
||||||
const { lastUpdate } = useUpdater()
|
const { lastUpdate } = useUpdater()
|
||||||
if (!lastUpdate.value)
|
if (!lastUpdate.value)
|
||||||
return navigateTo('/')
|
return navigateTo('/')
|
||||||
|
|||||||
Reference in New Issue
Block a user