-
Notifications
You must be signed in to change notification settings - Fork 814
/
Copy pathApp.vue
82 lines (68 loc) · 1.36 KB
/
App.vue
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<template>
<div id="app">
<router-view />
</div>
</template>
<script lang="ts">
import { shell } from 'electron'
import Vue from 'vue'
import Component from 'vue-class-component'
@Component
export default class App extends Vue {
mounted() {
document.addEventListener('click', (event: any) => {
if (event.target.tagName === 'A' && event.target.href.startsWith('http')) {
event.preventDefault()
shell.openExternal(event.target.href)
}
})
}
}
</script>
<style lang="less" scoped>
</style>
<style>
/* Global CSS */
body {
background: #fff;
color: #555;
}
::-webkit-scrollbar{
width: 4px;
height: 4px;
border-radius: 4px;
background-color: #fff;
}
/*滚动条两端的箭头*/
::-webkit-scrollbar-button{
display: none;
}
::-webkit-scroll-track{
display: none;
}
::-webkit-scrollbar-track-piece {
display: none;
}
::-webkit-scrollbar-thumb{
background-color: #eee;
opacity: 0.7;
border-radius: 4px;
}
::-webkit-scrollbar-corner {
display: none;
}
::-webkit-resizer{
display: none;
}
.github {
font-size: 16px;
margin-left: 16px;
cursor: pointer;
}
.logo {
user-select: none;
}
.application {
font-family: PingFang SC,-apple-system,SF UI Text,Lucida Grande,STheiti,Microsoft YaHei,sans-serif !important;
}
</style>