Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
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
张伯涛
bigDataSystem
Commits
e20a57f9
Commit
e20a57f9
authored
Dec 19, 2024
by
chenjiahao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台左侧标题跟随模块变化
parent
c9fa53d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
9 deletions
+26
-9
AppLogo.vue
src/components/Application/src/AppLogo.vue
+21
-4
layout.json
src/locales/lang/zh-CN/layout.json
+1
-1
LoginForm.vue
src/views/AAAFont/Login/LoginForm.vue
+2
-2
LoginForm.vue
src/views/sys/login/LoginForm.vue
+2
-2
No files found.
src/components/Application/src/AppLogo.vue
View file @
e20a57f9
...
...
@@ -10,14 +10,14 @@
<!--
</div>
-->
<div
style=
"display: flex; align-items: center"
@
click=
"handleGoFont"
>
<img
src=
"../../../assets/svg/logo.svg"
alt=
"融创软通"
/>
<span
v-show=
"showTitle"
style=
"margin-left: 10px; font-size: 20px; color: white"
>
数据要素平台
</span
>
<span
v-show=
"showTitle"
style=
"margin-left: 10px; font-size: 20px; color: white"
>
{{
headerTitle
}}
</span
>
</div>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
computed
,
unref
}
from
'vue'
;
import
{
computed
,
onMounted
,
ref
,
unref
}
from
'vue'
;
import
{
useGlobSetting
}
from
'@/hooks/setting'
;
import
{
useGo
}
from
'@/hooks/web/usePage'
;
import
{
useMenuSetting
}
from
'@/hooks/setting/useMenuSetting'
;
...
...
@@ -47,6 +47,10 @@
const
{
title
}
=
useGlobSetting
();
const
go
=
useGo
();
const
segmentValue
=
ref
(
'数据要素'
);
const
headerTitle
=
ref
(
'数据要素'
);
const
isDataElement
=
ref
();
const
getAppLogoClass
=
computed
(()
=>
[
prefixCls
,
props
.
theme
,
...
...
@@ -67,6 +71,19 @@
function
handleGoFont
()
{
window
.
open
(
'/#/aaaFont/font'
,
'_blank'
);
}
onMounted
(()
=>
{
if
(
localStorage
.
getItem
(
'segmentValue'
)
!==
null
)
{
segmentValue
.
value
=
localStorage
.
getItem
(
'segmentValue'
);
}
console
.
log
(
'segmentValue.value'
,
segmentValue
.
value
);
isDataElement
.
value
=
segmentValue
.
value
===
'数据要素'
;
if
(
isDataElement
.
value
)
{
headerTitle
.
value
=
'数据要素平台'
;
}
else
{
headerTitle
.
value
=
'数据资产平台'
;
}
});
</
script
>
<
style
lang=
"less"
scoped
>
@prefix-cls: ~'@{namespace}-app-logo';
...
...
src/locales/lang/zh-CN/layout.json
View file @
e20a57f9
...
...
@@ -21,7 +21,7 @@
"content"
:
"Vben Admin v5.0.0 预览版本已发布"
,
"ok-text"
:
"前往体验新版"
},
"model1"
:
"
服务
平台"
,
"model1"
:
"
基础
平台"
,
"model2"
:
"数据治理"
,
"model3"
:
"数据服务"
,
"model4"
:
"数仓开发"
,
...
...
src/views/AAAFont/Login/LoginForm.vue
View file @
e20a57f9
...
...
@@ -150,8 +150,8 @@
const
rememberMe
=
ref
(
false
);
const
formData
=
reactive
({
account
:
'
guanliyuan
'
,
password
:
'
123456
'
,
account
:
''
,
password
:
''
,
});
const
{
validForm
}
=
useFormValid
(
formRef
);
...
...
src/views/sys/login/LoginForm.vue
View file @
e20a57f9
...
...
@@ -119,8 +119,8 @@
const
rememberMe
=
ref
(
false
);
const
formData
=
reactive
({
account
:
'
guanliyuan
'
,
password
:
'
123456
'
,
account
:
''
,
password
:
''
,
});
const
{
validForm
}
=
useFormValid
(
formRef
);
...
...
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