init Project

This commit is contained in:
2025-04-09 12:10:46 +08:00
parent 505d08443c
commit 75a1447d66
207 changed files with 26387 additions and 13 deletions

41
src/router/index.js Normal file
View File

@@ -0,0 +1,41 @@
import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
{
path: '/',
redirect: '/login'
},
{
path: '/init',
name: 'Init',
component: () => import('@/view/init/index.vue')
},
{
path: '/login',
name: 'Login',
component: () => import('@/view/login/index.vue')
},
{
path: '/scanUpload',
name: 'ScanUpload',
meta: {
title: '扫码上传',
client: true
},
component: () => import('@/view/example/upload/scanUpload.vue')
},
{
path: '/:catchAll(.*)',
meta: {
closeTab: true
},
component: () => import('@/view/error/index.vue')
},
]
const router = createRouter({
history: createWebHashHistory(),
routes
})
export default router