Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
R
recruit-sys
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
李文光
recruit-sys
Commits
45ea60ee
Commit
45ea60ee
authored
Sep 04, 2026
by
李文光
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui): Element Plus 启用中文语言包(zh-cn)
引入 element-plus/es/locale/lang/zh-cn,使组件(日期/分页/弹窗等)显示中文。
parent
feba71f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
main.js
vue-app/src/main.js
+2
-1
No files found.
vue-app/src/main.js
View file @
45ea60ee
import
{
createApp
}
from
'vue'
import
{
createApp
}
from
'vue'
import
{
createPinia
}
from
'pinia'
import
{
createPinia
}
from
'pinia'
import
ElementPlus
from
'element-plus'
import
ElementPlus
from
'element-plus'
import
zhCn
from
'element-plus/es/locale/lang/zh-cn'
import
'element-plus/dist/index.css'
import
'element-plus/dist/index.css'
import
*
as
ElementPlusIconsVue
from
'@element-plus/icons-vue'
import
*
as
ElementPlusIconsVue
from
'@element-plus/icons-vue'
...
@@ -16,6 +17,6 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
...
@@ -16,6 +17,6 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app
.
use
(
createPinia
())
app
.
use
(
createPinia
())
app
.
use
(
router
)
app
.
use
(
router
)
app
.
use
(
ElementPlus
)
app
.
use
(
ElementPlus
,
{
locale
:
zhCn
}
)
app
.
mount
(
'#app'
)
app
.
mount
(
'#app'
)
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