Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ddef41dfca | ||
6c6b40593e | |||
45d83da5c7 |
56
.gitignore
vendored
56
.gitignore
vendored
@@ -233,33 +233,33 @@ fabric.properties
|
|||||||
# vendor/
|
# vendor/
|
||||||
|
|
||||||
# Go workspace file
|
# Go workspace file
|
||||||
go.work
|
./go.work
|
||||||
|
|
||||||
.idea
|
./.idea
|
||||||
web/.idea
|
./web/.idea
|
||||||
|
|
||||||
web/node_modules
|
./web/node_modules
|
||||||
web/.DS_Store
|
./web/.DS_Store
|
||||||
web/dist
|
./web/dist
|
||||||
web/dist-ssr
|
./web/dist-ssr
|
||||||
web/*.local
|
./web/*.local
|
||||||
web/.eslintcache
|
./web/.eslintcache
|
||||||
web/report.html
|
./web/report.html
|
||||||
web/vite.config.*.timestamp*
|
./web/vite.config.*.timestamp*
|
||||||
|
|
||||||
web/yarn.lock
|
./web/yarn.lock
|
||||||
web/npm-debug.log*
|
./web/npm-debug.log*
|
||||||
web/.pnpm-error.log*
|
./web/.pnpm-error.log*
|
||||||
web/.pnpm-debug.log
|
./web/.pnpm-debug.log
|
||||||
web/tests/**/coverage/
|
./web/tests/**/coverage/
|
||||||
web/.vscode/
|
./web/.vscode/
|
||||||
|
|
||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
web/*.suo
|
./web/*.suo
|
||||||
web/*.ntvs*
|
./web/*.ntvs*
|
||||||
web/*.njsproj
|
./web/*.njsproj
|
||||||
web/*.sln
|
./web/*.sln
|
||||||
web/tsconfig.tsbuildinfo
|
./web/tsconfig.tsbuildinfo
|
||||||
|
|
||||||
dist/assets
|
dist/assets
|
||||||
dist/resource
|
dist/resource
|
||||||
@@ -267,10 +267,10 @@ dist/favicon.png
|
|||||||
dist/favicon.svg
|
dist/favicon.svg
|
||||||
dist/index.html
|
dist/index.html
|
||||||
|
|
||||||
template/tmp/*
|
./template/tmp/*
|
||||||
logs/*
|
./logs/*
|
||||||
app.yaml
|
./app.yaml
|
||||||
*.db
|
./*.db
|
||||||
.env
|
./.env
|
||||||
*.env
|
./*.env
|
||||||
|
|
||||||
|
@@ -37,7 +37,6 @@ export async function addDynamicRoutes() {
|
|||||||
// 有token的情况
|
// 有token的情况
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
try {
|
try {
|
||||||
|
|
||||||
const permissionStore = usePermissionStore()
|
const permissionStore = usePermissionStore()
|
||||||
!userStore.id && (await userStore.getUserInfo())
|
!userStore.id && (await userStore.getUserInfo())
|
||||||
|
|
||||||
@@ -49,8 +48,8 @@ export async function addDynamicRoutes() {
|
|||||||
router.addRoute(NOT_FOUND_ROUTE)
|
router.addRoute(NOT_FOUND_ROUTE)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
$message.error('初始化用户信息失败: ' + error)
|
|
||||||
userStore.logout()
|
userStore.logout()
|
||||||
|
$message.error('初始化用户信息失败: ' + error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6,6 +6,7 @@ export default {
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/client',
|
redirect: '/client',
|
||||||
meta: {
|
meta: {
|
||||||
|
title: '客户端',
|
||||||
order: 2,
|
order: 2,
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
@@ -6,6 +6,7 @@ export default {
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/setting',
|
redirect: '/setting',
|
||||||
meta: {
|
meta: {
|
||||||
|
title: '设置',
|
||||||
order: 3,
|
order: 3,
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
@@ -6,6 +6,7 @@ export default {
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/user',
|
redirect: '/user',
|
||||||
meta: {
|
meta: {
|
||||||
|
title: '管理员',
|
||||||
order: 1,
|
order: 1,
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
@@ -6,6 +6,7 @@ export default {
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
redirect: '/workbench',
|
redirect: '/workbench',
|
||||||
meta: {
|
meta: {
|
||||||
|
title: '工作台',
|
||||||
order: 0,
|
order: 0,
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
4838
web/stats.html
Normal file
4838
web/stats.html
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user