Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
boyueCEnd
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
游洁
boyueCEnd
Commits
ebde465e
Commit
ebde465e
authored
Nov 21, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e7dd740c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
31 deletions
+13
-31
App.vue
src/App.vue
+12
-30
Login.vue
src/views/auth/Login.vue
+1
-1
No files found.
src/App.vue
View file @
ebde465e
...
...
@@ -23,28 +23,6 @@ const showLanguageSwitcher = computed(() => {
return
useUser
.
userInfo
==
null
})
// 静态主题配置(覆盖默认变量)
const
themeConfig
=
ref
({
// 主色(按钮、链接等核心元素)
'color-primary'
:
'#4a664d'
,
// 主色 hover 状态
'color-primary-hover'
:
'#8aaa8a'
,
// 主色点击状态
'color-primary-active'
:
'#4a664d'
,
// 一级文本色(标题)
'color-text-1'
:
'#0c150d'
,
// 页面背景色
'color-bg-1'
:
'#fafafa'
,
// 卡片背景色
'color-bg-2'
:
'#f0f0f0'
,
token
:
{
// 必须通过 token 对象包裹
colorPrimary
:
'#263628'
,
// 注意驼峰命名(对应 CSS 变量 --color-primary)
colorText1
:
'#1a1a1a'
,
colorBg1
:
'#fafafa'
,
colorBg2
:
'#f0f0f0'
,
}
})
// 监听语言变化,更新 Arco Design 国际化
watch
(
locale
,
async
(
newLocale
)
=>
{
try
{
...
...
@@ -79,8 +57,7 @@ onMounted(async () => {
</
script
>
<
template
>
<ConfigProvider
:locale=
"globalArcoLocale || undefined"
:theme=
"themeConfig"
>
<ConfigProvider
:locale=
"globalArcoLocale || undefined"
>
<div
id=
"app"
class=
"min-h-screen bg-[#fcfcfc]"
>
<!-- 语言切换器 - 固定在右上角 -->
<div
...
...
@@ -107,7 +84,12 @@ body {
--arcoblue-3
:
138
,
168
,
138
;
//#8AA88A
--arcoblue-2
:
235
,
235
,
233
;
//#EBEBE9
--arcoblue-1
:
72
,
96
,
91
;
//#48605B
}
--gray-1
:
12
,
21
,
13
;
//#0c150d
--gray-2
:
90
,
90
,
90
;
//#5a5a5a
--gray-3
:
19
,
53
,
55
;
//#133537
}
:root
{
--primary1-9
:
#ff9707
;
--primary1-8
:
#263628
;
...
...
@@ -115,18 +97,18 @@ body {
--primary1-5
:
#95A997
;
--primary1-7
:
#e3e6da
;
--primary1-4
:
#C0CEB3
;
--primary1-3
:
#8
AA88A
;
--primary1-3
:
#8
aa88a
;
--primary1-2
:
#EBEBE9
;
--primary1-1
:
#48605B
;
/* 文本色调整为深灰 */
--color-text-1
:
#0c150d
;
--color-text-2
:
#5a5a5a
;
--color-text-3
:
#133537
;
--color
1
-text-1
:
#0c150d
;
--color
1
-text-2
:
#5a5a5a
;
--color
1
-text-3
:
#133537
;
}
.primary1-9
{
color
:
var
(
--
primary1-9
);}
.primary1-8
{
color
:
var
(
--
primary1-8
);}
.primary1-6
{
color
:
var
(
--
primary
1
-6
);}
.primary1-6
{
color
:
var
(
--
primary-6
);}
.primary1-5
{
color
:
var
(
--
primary1-5
);}
.primary1-7
{
color
:
var
(
--
primary1-7
);}
.primary1-4
{
color
:
var
(
--
primary1-4
);}
...
...
src/views/auth/Login.vue
View file @
ebde465e
...
...
@@ -367,7 +367,7 @@ onMounted(async () => {
:deep
(
.arco-input-focus
)
{
border-radius
:
12px
;
box-shadow
:
rgba
(
60
,
85
,
62
,
0
.18
)
0px
5px
15px
;
border
:
2px
solid
#8AAA8A
;
border
:
2px
solid
var
(
--
primary1-3
)
;
background-color
:
#FFFFFF
;
}
:deep
(
.arco-form-item-label
)
{
...
...
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