Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
contractmanage
Project
Project
Details
Activity
Releases
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
张伯涛
contractmanage
Commits
8879f6c7
Commit
8879f6c7
authored
Mar 19, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地址菜单栏修改
parent
39661c2a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
27 deletions
+27
-27
.env.development
.env.development
+1
-1
.env.test
.env.test
+1
-1
index.vue
src/layout/components/Sidebar/index.vue
+24
-24
vue.config.js
vue.config.js
+1
-1
No files found.
.env.development
View file @
8879f6c7
...
...
@@ -2,7 +2,7 @@
ENV = 'development'
# base api
VUE_APP_BASE_API = 'http://1
0.19.103.15
:8090'
VUE_APP_BASE_API = 'http://1
17.122.212.102
:8090'
# workFlow链接地址
VUE_APP_WORKFLOW = '/workFlow'
# login地址
...
...
.env.test
View file @
8879f6c7
...
...
@@ -3,5 +3,5 @@ ENV = 'test'
NODE_ENV
=
'production'
# 测试环境
# base api
VUE_APP_BASE_API
=
'http://1
0.19.103.15
:8090'
VUE_APP_BASE_API
=
'http://1
17.122.212.102
:8090'
src/layout/components/Sidebar/index.vue
View file @
8879f6c7
...
...
@@ -12,31 +12,31 @@
:collapse-transition=
"false"
mode=
"vertical"
>
<template
v-for=
"(item, index) in menuList"
>
<el-submenu
:key=
"index"
:index=
"item.path"
popper-class=
"nav-menu-popper"
@
click=
"handleSelect(item)"
>
<template
slot=
"title"
>
<span>
{{
item
.
meta
.
title
}}
</span
>
</
template
>
<
template
v-for=
"(children, childrenIndex) in item.children"
>
<el-menu-item
v-if=
"!children.hidden"
:key=
"childrenIndex"
:index=
"children.path"
style=
"text-align: left;"
@
click=
"handleSelect(children.path)"
>
{{
children
.
meta
.
title
}}
</el-menu-item
>
</
template
>
<!--
<template
v-for=
"(item, index) in menuList"
>
--
>
<!--
<el-submenu-->
<!-- :key="index"-->
<!-- :index="item.path"-->
<!-- popper-class="nav-menu-popper"-->
<!-- @click="handleSelect(item)"-->
<!-- >--
>
<!--
<template
slot=
"title"
>
--
>
<!--
<span>
{{
item
.
meta
.
title
}}
</span>
--
>
<!--
</
template
>
--
>
<!-- <template v-for="(children, childrenIndex) in item.children">--
>
<!-- <el-menu-item-->
<!-- v-if="!children.hidden"-->
<!-- :key="childrenIndex"-->
<!-- :index="children.path"-->
<!-- style="text-align: left;"-->
<!-- @click="handleSelect(children.path)"-->
<!-- >--
>
<!-- {{ children.meta.title }}-->
<!-- </el-menu-item>--
>
<!-- </template>--
>
</el-submenu
>
</template
>
<
!--<sidebar-item v-for="route in permission_routes" :key="route.path" :item="route" :base-path="route.path" />--
>
<!-- </el-submenu>--
>
<!-- </template>--
>
<
sidebar-item
v-for=
"route in permission_routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/
>
</el-menu>
</el-scrollbar>
</div>
...
...
vue.config.js
View file @
8879f6c7
...
...
@@ -42,7 +42,7 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://10.5.87.231:10010/`,
// target: `http://zt.51newsoftware.com:10184/`,
target
:
'http://117.122.212.10
1:8092
/'
,
target
:
'http://117.122.212.10
2:8090
/'
,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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