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 fc88fa2f
authored
Jan 12, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 文件修改更新
1 parent
89ef67dd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
64 deletions
apps/web/venus-agentic/venus-agentic-base/src/views/Communication.vue
apps/web/venus-agentic/venus-agentic-base/src/views/Home.vue
apps/web/venus-agentic/venus-agentic-base/src/views/MicroApp.vue
lefthook.yml
apps/web/venus-agentic/venus-agentic-base/src/views/Communication.vue
View file @
fc88fa2
This diff is collapsed.
Click to expand it.
apps/web/venus-agentic/venus-agentic-base/src/views/Home.vue
View file @
fc88fa2
This diff is collapsed.
Click to expand it.
apps/web/venus-agentic/venus-agentic-base/src/views/MicroApp.vue
View file @
fc88fa2
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
onMounted
,
onUnmounted
,
nextTick
}
from
'vue'
;
import
{
nextTick
,
onMounted
,
onUnmounted
}
from
"vue"
;
import
{
useRoute
}
from
'vue-router'
;
import
{
useRoute
}
from
"vue-router"
;
import
GlobalLoading
from
'@/components/GlobalLoading.vue'
;
import
GlobalLoading
from
"@/components/GlobalLoading.vue"
;
const
route
=
useRoute
();
const
route
=
useRoute
();
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
console
.
log
(
'[基座] 微应用容器组件已挂载,当前路由:'
,
route
.
path
);
console
.
log
(
"[基座] 微应用容器组件已挂载,当前路由:"
,
route
.
path
);
// 等待 DOM 完全更新
// 等待 DOM 完全更新
await
nextTick
();
await
nextTick
();
// 确认容器元素已存在
// 确认容器元素已存在
const
container
=
document
.
getElementById
(
'subapp-container'
);
const
container
=
document
.
querySelector
(
"#subapp-container"
);
if
(
container
)
{
if
(
container
)
{
console
.
log
(
'[基座] 微应用容器 DOM 已就绪'
);
console
.
log
(
"[基座] 微应用容器 DOM 已就绪"
);
}
else
{
}
else
{
console
.
error
(
'[基座] 微应用容器 DOM 未找到,可能导致微应用加载失败'
);
console
.
error
(
"[基座] 微应用容器 DOM 未找到,可能导致微应用加载失败"
);
}
}
});
});
onUnmounted
(()
=>
{
onUnmounted
(()
=>
{
console
.
log
(
'[基座] 微应用容器已卸载'
);
console
.
log
(
"[基座] 微应用容器已卸载"
);
});
});
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"micro-app-wrapper"
>
<div
class=
"micro-app-wrapper"
>
<!-- qiankun 微应用容器 - 作为唯一的微应用挂载点 -->
<!-- qiankun 微应用容器 - 作为唯一的微应用挂载点 -->
<div
id=
"subapp-container"
class=
"micro-app-container"
></div>
<div
id=
"subapp-container"
class=
"micro-app-container"
></div>
<!-- 子应用加载中的 loading -->
<!-- 子应用加载中的 loading -->
<GlobalLoading
/>
<GlobalLoading
/>
</div>
</div>
</
template
>
</
template
>
<
style
scoped
>
<
style
scoped
>
...
...
lefthook.yml
View file @
fc88fa2
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://lefthook.dev/configuration/
#
# pre-push:
# jobs:
# - name: packages audit
# tags:
# - frontend
# - security
# run: yarn audit
#
# - name: gems audit
# tags:
# - backend
# - security
# run: bundle audit
#
# pre-commit:
# parallel: true
# jobs:
# - run: yarn eslint {staged_files}
# glob: "*.{js,ts,jsx,tsx}"
#
# - name: rubocop
# glob: "*.rb"
# exclude:
# - config/application.rb
# - config/routes.rb
# run: bundle exec rubocop --force-exclusion {all_files}
#
# - name: govet
# files: git ls-files -m
# glob: "*.go"
# run: go vet {files}
#
# - script: "hello.js"
# runner: node
#
# - script: "hello.go"
# runner: go run
pre-commit
:
pre-commit
:
parallel
:
true
parallel
:
true
commands
:
commands
:
code-workspace
:
code-workspace
:
run
:
pnpm vsh code-workspace --auto-commit
run
:
pnpm vsh code-workspace --auto-commit
#
lint-staged:
lint-staged
:
#
run: pnpm lint-staged
run
:
pnpm lint-staged
post-merge
:
post-merge
:
commands
:
commands
:
...
...
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