Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
70ceb1ca
Commit
70ceb1ca
authored
Feb 12, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化title设置
parent
42c4e727
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
18 deletions
+7
-18
.env.dev
.env.dev
+2
-5
.env.development
.env.development
+2
-5
Logo.vue
src/layout/components/Sidebar/Logo.vue
+3
-8
No files found.
.env.dev
View file @
70ceb1ca
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
NODE_ENV = 'production'
NODE_ENV = 'production'
# 页面标题
# 页面标题
VUE_APP_TITLE = 捷道管理系统
VUE_APP_TITLE = 捷道管理系统
- 测试版
# 捷道管理系统/开发环境
# 捷道管理系统/开发环境
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
...
@@ -19,6 +19,3 @@ VUE_APP_DOC_ENABLE = true
...
@@ -19,6 +19,3 @@ VUE_APP_DOC_ENABLE = true
# 百度统计
# 百度统计
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
\ No newline at end of file
#测试站编辑
VUE_APP_DEVELOPMENT=true
\ No newline at end of file
.env.development
View file @
70ceb1ca
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
ENV = 'development'
ENV = 'development'
# 页面标题
# 页面标题
VUE_APP_TITLE = 捷道管理系统
VUE_APP_TITLE = 捷道管理系统
-测试站
# 捷道管理系统/开发环境
# 捷道管理系统/开发环境
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
...
@@ -18,6 +18,3 @@ VUE_APP_DOC_ENABLE = true
...
@@ -18,6 +18,3 @@ VUE_APP_DOC_ENABLE = true
# 百度统计
# 百度统计
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
\ No newline at end of file
#测试站编辑
VUE_APP_DEVELOPMENT=true
\ No newline at end of file
src/layout/components/Sidebar/Logo.vue
View file @
70ceb1ca
...
@@ -5,14 +5,12 @@
...
@@ -5,14 +5,12 @@
<img
v-if=
"logo"
:src=
"logo"
class=
"sidebar-logo"
/>
<img
v-if=
"logo"
:src=
"logo"
class=
"sidebar-logo"
/>
<h1
v-else
class=
"sidebar-title"
:style=
"
{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
<h1
v-else
class=
"sidebar-title"
:style=
"
{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
{{
title
}}
{{
title
}}
<span
v-if=
"isDevelopment"
>
-测试版
</span>
</h1>
</h1>
</router-link>
</router-link>
<router-link
v-else
key=
"expand"
class=
"sidebar-logo-link"
to=
"/"
>
<router-link
v-else
key=
"expand"
class=
"sidebar-logo-link"
to=
"/"
>
<img
v-if=
"logo"
:src=
"logo"
class=
"sidebar-logo"
/>
<img
v-if=
"logo"
:src=
"logo"
class=
"sidebar-logo"
/>
<h1
class=
"sidebar-title"
:style=
"
{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
<h1
class=
"sidebar-title"
:style=
"
{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
{{
title
}}
{{
title
}}
<span
v-if=
"isDevelopment"
>
-测试版
</span>
</h1>
</h1>
</router-link>
</router-link>
</transition>
</transition>
...
@@ -40,15 +38,12 @@ export default {
...
@@ -40,15 +38,12 @@ export default {
}
}
},
},
created
(){
created
(){
if
(
process
.
env
.
VUE_APP_DEVELOPMENT
){
console
.
log
(
'
process.env
'
,
process
.
env
)
this
.
isDevelopment
=
true
}
},
},
data
()
{
data
()
{
return
{
return
{
title
:
'
捷道管理系统
'
,
title
:
process
.
env
.
VUE_APP_TITLE
,
logo
:
logoImg
,
logo
:
logoImg
isDevelopment
:
false
// 是否开发模式
}
}
}
}
}
}
...
...
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