Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nse-ui
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
nse-ui
Commits
598fd845
Commit
598fd845
authored
Sep 29, 2025
by
ningjihai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mitt
parent
477135c6
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
18 行增加
和
6 行删除
+18
-6
package.json
+1
-0
pnpm-lock.yaml
+3
-0
src/components/PageTitle/index.vue
+1
-1
src/layout/components/Sidebar/index.vue
+6
-2
src/utils/eventBus.js
+2
-0
src/utils/switchRoute.js
+3
-1
vite.config.js
+2
-2
没有找到文件。
package.json
View file @
598fd845
...
...
@@ -31,6 +31,7 @@
"
js-beautify
"
:
"1.14.11"
,
"
js-cookie
"
:
"3.0.5"
,
"
jsencrypt
"
:
"3.3.2"
,
"
mitt
"
:
"^3.0.1"
,
"
nprogress
"
:
"0.2.0"
,
"
pinia
"
:
"3.0.2"
,
"
sm-crypto
"
:
"^0.3.13"
,
...
...
pnpm-lock.yaml
View file @
598fd845
...
...
@@ -53,6 +53,9 @@ importers:
jsencrypt
:
specifier
:
3.3.2
version
:
3.3.2
mitt
:
specifier
:
^3.0.1
version
:
3.0.1
nprogress
:
specifier
:
0.2.0
version
:
0.2.0
...
...
src/components/PageTitle/index.vue
View file @
598fd845
...
...
@@ -81,7 +81,7 @@ function handleBackProject () {
</div>
<div
class=
"right-part"
>
<slot
name=
"buttons"
/>
<el-button
v-if=
"props.backProject"
color=
"rgba(11, 136, 251, 1)"
plain
@
click=
"handleBackProject"
><img
class=
"return-logo"
:src=
"returnLogo"
alt=
"
"
>
返回项目管理
</el-button>
<el-button
v-if=
"props.backProject"
color=
"rgba(11, 136, 251, 1)"
plain
icon=
"back"
@
click=
"handleBackProject
"
>
返回项目管理
</el-button>
</div>
</div>
</div>
...
...
src/layout/components/Sidebar/index.vue
View file @
598fd845
...
...
@@ -49,7 +49,7 @@
</div>
<!-- 子菜单容器 -->
<div
v-if=
"submenuItems.length > 0
&& !isProject
"
class=
"submenu-container"
>
<div
v-if=
"submenuItems.length > 0"
class=
"submenu-container"
>
<div
class=
"submenu-wrapper"
>
<
template
v-for=
"(child, index) in submenuItems"
:key=
"child.path + index"
>
<div
v-if=
"!child.hidden"
class=
"submenu-item"
:class=
"[child.fullPath === route.fullPath ? 'active-submenu-item' : '']"
@
click=
"remberChild(child)"
>
...
...
@@ -81,6 +81,7 @@ import usePermissionStore from '@/store/modules/permission'
import
{
ref
,
computed
,
onMounted
}
from
'vue'
import
{
getNormalPath
}
from
'@/utils/ruoyi'
import
{
useRoute
,
useRouter
}
from
'vue-router'
import
{
emitter
}
from
'@/utils/eventBus'
const
route
=
useRoute
()
const
router
=
useRouter
()
const
submenuItems
=
ref
([])
...
...
@@ -107,13 +108,16 @@ const navType = computed(() => {
return
type
})
onMounted
(()
=>
{
console
.
log
(
route
.
fullPath
)
if
(
sessionStorage
.
getItem
(
'subMenuPath'
)){
submenuItems
.
value
=
sessionStorage
.
getItem
(
'submenuItems'
)
?
JSON
.
parse
(
sessionStorage
.
getItem
(
'submenuItems'
))
:
[]
}
else
{
submenuItems
.
value
=
[]
}
emitter
.
on
(
'event-name'
,
()
=>
{
submenuItems
.
value
=
[]
})
})
const
isProject
=
computed
(()
=>
{
...
...
src/utils/eventBus.js
0 → 100644
View file @
598fd845
import
mitt
from
'mitt'
export
const
emitter
=
mitt
()
src/utils/switchRoute.js
View file @
598fd845
import
router
from
'@/router'
import
useAppStore
from
'@/store/modules/app'
import
{
emitter
}
from
'@/utils/eventBus'
const
appStore
=
useAppStore
()
export
function
changeRoute
()
{
...
...
@@ -13,4 +13,5 @@ export function changeRoute() {
path
:
'/project/Project'
})
}
emitter
.
emit
(
'event-name'
)
}
\ No newline at end of file
vite.config.js
View file @
598fd845
...
...
@@ -2,8 +2,8 @@ import { defineConfig, loadEnv } from 'vite'
import
path
from
'path'
import
createVitePlugins
from
'./vite/plugins'
const
baseUrl
=
'http://
localhost:8080
'
// 后端接口
const
baseUrl
=
'http://
172.19.1.33:9001
'
// 后端接口
// const baseUrl = 'http://172.19.1.167:9006' // 演示环境
// https://vitejs.dev/config/
export
default
defineConfig
(({
mode
,
command
})
=>
{
const
env
=
loadEnv
(
mode
,
process
.
cwd
())
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论