-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
63 lines (63 loc) · 1.88 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
var app = new Vue({
el: '#app',
data: {
language: 'English',
languagePack: {
English: {
webName: 'Amber\'s Damon',
menu: [
{
name: 'Photographic Works',
href: './pages/PhotographicWorks/index.html'
},
{
name: 'Video Logs',
href: './pages/videoLog/index.html'
},
{
name: 'Articles',
href: './pages/Articles/index.html'
},
{
name: 'Webpage Demo',
href: './index.html'
},
{
name: 'Paintings',
href: './index.html'
}
]
},
Chinese: {
webName: 'Amber\'s Damon',
menu: [
{
name: '摄影作品',
href: './pages/PhotographicWorks/index.html'
},
{
name: '视频',
href: './pages/videoLog/index.html'
},
{
name: '文章',
href: './pages/Articles/index.html'
},
{
name: '网站小样',
href: './index.html'
},
{
name: '绘画作品',
href: './index.html'
}
]
},
}
},
methods: {
changeLanguage: (language) => {
app.language = language
}
}
})