Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
6c34a2b3
Commit
6c34a2b3
authored
Jul 11, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证码校验
parent
7cb62d64
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
src/components/bg-menu.vue
src/components/bg-menu.vue
+1
-1
src/components/login-by-code.vue
src/components/login-by-code.vue
+1
-1
src/router/function.js
src/router/function.js
+4
-1
No files found.
src/components/bg-menu.vue
View file @
6c34a2b3
...
...
@@ -242,7 +242,7 @@ export default {
pathToUrl
(
item
,
parent
)
{
//判断是否是新窗口打开
if
(
item
.
new_window
)
{
window
.
open
(
item
.
path
,
"
_blank
"
);
window
.
open
(
item
.
sourcePath
?
item
.
sourcePath
:
item
.
path
,
"
_blank
"
);
}
else
{
// 当前窗口打开
if
(
item
.
path
.
indexOf
(
"
#
"
)
>
-
1
)
{
...
...
src/components/login-by-code.vue
View file @
6c34a2b3
...
...
@@ -166,7 +166,7 @@ const getUser = () => {
store
.
commit
(
"
setMenuObj
"
,
menuObj
);
// }
generateRoutes
();
router
.
push
(
"
/
"
);
router
.
push
(
"
/
forewarning/list
"
);
}
});
};
...
...
src/router/function.js
View file @
6c34a2b3
...
...
@@ -278,7 +278,10 @@ function getViews(path) {
var
menuToRouter
=
(
menu
)
=>
{
menu
.
forEach
((
e
)
=>
{
e
.
name
=
getName
(
e
.
path
);
if
(
e
.
path
.
indexOf
(
"
#
"
)
!=
-
1
&&
e
.
new_window
!==
1
)
{
if
(
e
.
path
.
indexOf
(
"
#
"
)
!=
-
1
)
{
if
(
e
.
path
.
indexOf
(
"
http
"
)
===
0
)
{
e
.
sourcePath
=
e
.
path
;
}
e
.
path
=
e
.
path
.
split
(
"
#
"
)[
1
];
}
if
(
e
.
children
&&
e
.
menuType
==
0
)
{
...
...
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