Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yudao-admin-ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licheng
yudao-admin-ui
Commits
46a07fd2
Commit
46a07fd2
authored
Aug 26, 2025
by
licheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 独立窗口弹窗
parent
fa79ae06
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
remaining.ts
src/router/modules/remaining.ts
+9
-0
Index.vue
src/views/Home/Index.vue
+8
-3
No files found.
src/router/modules/remaining.ts
View file @
46a07fd2
...
@@ -51,6 +51,15 @@ const remainingRouter: AppRouteRecordRaw[] = [
...
@@ -51,6 +51,15 @@ const remainingRouter: AppRouteRecordRaw[] = [
}
}
},
},
{
{
path
:
'/chart'
,
component
:
()
=>
import
(
'@/views/Home/Index2.vue'
),
name
:
'chart'
,
meta
:
{
hidden
:
true
,
title
:
t
(
'独立窗口'
),
}
},
{
path
:
'/'
,
path
:
'/'
,
component
:
Layout
,
component
:
Layout
,
redirect
:
'/index'
,
redirect
:
'/index'
,
...
...
src/views/Home/Index.vue
View file @
46a07fd2
<
template
>
<
template
>
<div>
<div>
index
<el-button
type=
"primary"
@
click=
"openNewWin"
>
Open New Window
</el-button>
<el-button
type=
"primary"
>
Primary Button
</el-button>
</div>
</div>
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
const
openNewWin
=
function
()
{
window
.
open
(
'http://localhost/chart'
,
'单独窗口'
,
'height=700,width=1200,top=100,left=200'
)
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
></
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment