Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
30d0e665
authored
2025-06-12 10:31:37 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
指南
1 parent
761028a0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
3 deletions
src/layoutPc/components/AppHeader.vue
src/store/modules/user.js
src/viewsPc/index.vue
src/viewsPc/index_en.vue
src/layoutPc/components/AppHeader.vue
View file @
30d0e66
...
...
@@ -13,7 +13,10 @@
>
<el-menu-item
index=
"/"
>
{{
language
==
0
?
'首页'
:
'HOME'
}}
</el-menu-item>
<el-menu-item
index=
"/news"
>
{{
language
==
0
?
'新闻资讯'
:
'NEWS'
}}
</el-menu-item>
<el-menu-item
index=
"/guide"
>
{{
language
==
0
?
'参赛指南'
:
'GUIDELINE'
}}
</el-menu-item>
<el-menu-item
:index=
"`/guide/index?index=8&cptId=$
{cptId}`">
{{
language
==
0
?
'参赛指南'
:
'GUIDELINE'
}}
</el-menu-item>
<el-menu-item
index=
"/match/list"
>
{{
language
==
0
?
'大赛报名'
:
'REGISTRATION'
}}
</el-menu-item>
<el-menu-item
index=
"/saiC"
>
{{
language
==
0
?
'赛程安排'
:
'COMPETITIONS'
}}
</el-menu-item>
<el-menu-item
index=
"/meta"
>
{{
language
==
0
?
'媒体中心'
:
'MEDIA'
}}
</el-menu-item>
...
...
@@ -33,7 +36,10 @@
>
<el-menu-item
index=
"/"
>
{{ language == 0 ? '首页' : 'HOME' }}
</el-menu-item>
<el-menu-item
index=
"/news"
>
{{ language == 0 ? '新闻资讯' : 'NEWS' }}
</el-menu-item>
<el-menu-item
index=
"/guide"
>
{{ language == 0 ? '参赛指南' : 'GUIDELINE' }}
</el-menu-item>
<el-menu-item
:index=
"`/guide/index?index=8&cptId=${cptId}`"
>
{{
language == 0 ? '参赛指南' : 'GUIDELINE'
}}
</el-menu-item>
<el-menu-item
index=
"/match/list"
>
{{ language == 0 ? '大赛报名' : 'REGISTRATION' }}
</el-menu-item>
<el-menu-item
index=
"/saiC"
>
{{ language == 0 ? '赛程安排' : 'COMPETITIONS' }}
</el-menu-item>
<el-menu-item
index=
"/meta"
>
{{ language == 0 ? '媒体中心' : 'MEDIA' }}
</el-menu-item>
...
...
@@ -185,6 +191,8 @@ import CaptchaSms from './captchaSms'
import
cache
from
'@/plugins/cache'
import
{
useStorage
}
from
'@vueuse/core'
const
cptId
=
computed
(()
=>
useUserStore
().
nowMatch
)
const
router
=
useRouter
()
const
route
=
useRoute
()
const
{
proxy
}
=
getCurrentInstance
()
...
...
src/store/modules/user.js
View file @
30d0e66
...
...
@@ -34,7 +34,8 @@ const useUserStore = defineStore(
reLogin
:
{
show
:
false
,
query
:
{}},
visitor
:
false
,
language
:
0
,
activeName
:
'5'
activeName
:
'5'
,
nowMatch
:
''
}),
actions
:
{
// 登录
...
...
@@ -190,6 +191,9 @@ const useUserStore = defineStore(
},
updataActiveName
(
v
)
{
this
.
activeName
=
v
},
updateNowMatch
(
v
)
{
this
.
nowMatch
=
v
}
}
})
...
...
src/viewsPc/index.vue
View file @
30d0e66
...
...
@@ -441,6 +441,7 @@ import { getAboutUs, getppInfo, getZNList } from '@/apiPc/match'
import
AffixInvitation
from
'/@/viewsPc/match/components/affix-invitation.vue'
import
{
useStorage
}
from
'@vueuse/core/index'
import
useUserStore
from
'@/store/modules/user'
const
language
=
useStorage
(
'language'
,
0
)
...
...
@@ -544,6 +545,7 @@ const init = () => {
}
}
matchData
.
value
=
maList
.
value
[
0
]
useUserStore
().
updateNowMatch
(
matchData
.
value
.
id
)
})
getpartners
()
}
...
...
src/viewsPc/index_en.vue
View file @
30d0e66
...
...
@@ -421,6 +421,8 @@ import * as match from '@/apiPc/match'
import
{
rankList
}
from
'@/assets/js/data'
import
AffixInvitation
from
'/@/viewsPc/match/components/affix-invitation.vue'
import
{
useStorage
}
from
'@vueuse/core/index'
import
useUserStore
from
'/@/store/modules/user'
const
language
=
useStorage
(
'language'
,
0
)
const
modules
=
[
Autoplay
,
Navigation
]
...
...
@@ -524,6 +526,7 @@ const init = () => {
}
}
matchData
.
value
=
maList
.
value
[
0
]
useUserStore
().
updateNowMatch
(
matchData
.
value
.
id
)
})
getpartners
()
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment