Первый коммит для gitea
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user