Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
Project
Project
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
Administrator
web-monitor
Commits
c868e90d
Commit
c868e90d
authored
Jan 16, 2025
by
dupengyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路由调整
parent
61317410
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
189 additions
and
183 deletions
+189
-183
menu.js
src/api/system/menu.js
+1
-1
index.js
src/router/index.js
+183
-177
peimission.js
src/store/modules/peimission.js
+3
-3
vue.config.js
vue.config.js
+2
-2
No files found.
src/api/system/menu.js
View file @
c868e90d
...
@@ -36,7 +36,7 @@ export function roleMenuTreeselect(roleId) {
...
@@ -36,7 +36,7 @@ export function roleMenuTreeselect(roleId) {
// 新增菜单
// 新增菜单
export
function
addMenu
(
data
)
{
export
function
addMenu
(
data
)
{
return
request
({
return
request
({
url
:
'/api/menu'
,
url
:
'/api/menu
/add
'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
...
...
src/router/index.js
View file @
c868e90d
This diff is collapsed.
Click to expand it.
src/store/modules/peimission.js
View file @
c868e90d
...
@@ -63,7 +63,7 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
...
@@ -63,7 +63,7 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
}
}
if
(
route
.
component
)
{
if
(
route
.
component
)
{
// Layout ParentView 组件特殊处理
// Layout ParentView 组件特殊处理
if
(
route
.
component
==
=
'Layout'
)
{
if
(
route
.
component
==
'Layout'
)
{
route
.
component
=
Layout
route
.
component
=
Layout
}
}
else
if
(
route
.
component
===
'ParentView'
)
{
else
if
(
route
.
component
===
'ParentView'
)
{
...
...
vue.config.js
View file @
c868e90d
...
@@ -8,9 +8,9 @@ function resolve(dir) {
...
@@ -8,9 +8,9 @@ function resolve(dir) {
const
name
=
defaultSettings
.
title
||
'漏缆故障定位监测系统'
// page title
const
name
=
defaultSettings
.
title
||
'漏缆故障定位监测系统'
// page title
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
8890
// dev port
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
8890
// dev port
//
const href = 'http://101.126.159.207'
const
href
=
'http://101.126.159.207'
// const href = 'http://127.0.0.1'
// const href = 'http://127.0.0.1'
const
href
=
'http://192.168.0.122'
//
const href = 'http://192.168.0.122'
...
...
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