Первый коммит для gitea

This commit is contained in:
2025-07-24 16:26:18 +03:00
parent 34baeb40e3
commit 4c7f79bb7f
35 changed files with 168 additions and 4957 deletions

View File

@@ -7,6 +7,7 @@ import {
} from 'vue-router'
import routes from './routes'
import { useProjectsStore } from 'stores/projects'
import { useAuthStore } from 'stores/auth'
export default defineRouter(function (/* { store, ssrContext } */) {
const createHistory = process.env.SERVER
@@ -27,13 +28,14 @@ export default defineRouter(function (/* { store, ssrContext } */) {
if (to.name === 'settings') return
if (to.name === '404') return
const projectsStore = useProjectsStore()
console.log('router mount', projectsStore.startRouteInfo)
if (projectsStore.startRouteInfo && to.path === '/') {
const { id, taskId, meetingId } = projectsStore.startRouteInfo
projectsStore.setStartRouteInfo(null)
const authStore = useAuthStore()
const projectsStore = useProjectsStore()
if (authStore.startRouteInfo && to.path === '/') {
const { id, taskId, meetingId } = authStore.startRouteInfo
authStore.setStartRouteInfo(null)
if (!projectsStore.isInit) await projectsStore.init()
const project = projectsStore.projectById(id)