Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6dd252f3
authored
Jan 22, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 格式化处理
1 parent
de3966d8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
apps/web/venus-agentic/venus-agentic-base/src/composables/useAuth.ts
apps/web/venus-agentic/venus-agentic-base/src/stores/permission.ts
apps/web/venus-agentic/venus-agentic-base/tsconfig.node.json
apps/web/venus-agentic/venus-agentic-base/src/composables/useAuth.ts
View file @
6dd252f
/**
import
{
computed
}
from
"vue"
;
* 权限相关的组合式 API
* 提供便捷的权限检查方法
*/
import
{
computed
}
from
'vue'
;
import
{
useUserStore
}
from
"@/stores"
;
import
{
useUserStore
}
from
'@/stores'
;
export
function
useAuth
()
{
export
function
useAuth
()
{
const
userStore
=
useUserStore
();
const
userStore
=
useUserStore
();
...
...
apps/web/venus-agentic/venus-agentic-base/src/stores/permission.ts
View file @
6dd252f
import
type
{
RouteRecordRaw
}
from
'vue-router'
;
import
type
{
RouteRecordRaw
}
from
"vue-router"
;
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
"vue"
;
import
{
defineStore
}
from
'pinia'
;
import
{
defineStore
}
from
"pinia"
;
/**
/**
* 权限路由管理
* 权限路由管理
*/
*/
export
const
usePermissionStore
=
defineStore
(
'permission'
,
()
=>
{
export
const
usePermissionStore
=
defineStore
(
"permission"
,
()
=>
{
// 所有路由
// 所有路由
const
routes
=
ref
<
RouteRecordRaw
[]
>
([]);
const
routes
=
ref
<
RouteRecordRaw
[]
>
([]);
...
...
apps/web/venus-agentic/venus-agentic-base/tsconfig.node.json
View file @
6dd252f
{
{
"compilerOptions"
:
{
"compilerOptions"
:
{
"composite"
:
true
,
"composite"
:
true
,
"baseUrl"
:
"."
,
"module"
:
"ESNext"
,
"module"
:
"ESNext"
,
"moduleResolution"
:
"bundler"
,
"moduleResolution"
:
"bundler"
,
"paths"
:
{
"@/*"
:
[
"src/*"
]
},
"allowSyntheticDefaultImports"
:
true
,
"allowSyntheticDefaultImports"
:
true
,
"skipLibCheck"
:
true
"skipLibCheck"
:
true
},
},
"include"
:
[
"vite.config.ts"
]
"include"
:
[
"vite.config.ts"
,
"src/**/*.ts"
,
"src/**/*.tsx"
,
"src/**/*.vue"
]
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment