forked from tjsky/pikpak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
53 lines (51 loc) · 1.46 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
<script setup lang="ts">
import { ref } from '@vue/reactivity';
import { onMounted } from '@vue/runtime-core';
import { GlobalThemeOverrides, NConfigProvider, NMessageProvider, zhCN, dateZhCN, NDialogProvider, NNotificationProvider } from 'naive-ui'
import MessageContent from './components/MessageContent.vue';
import { version, proxy } from './config'
const themeOverrides = ref<GlobalThemeOverrides>({
common: {
primaryColor: '#306eff',
hoverColor: '#306eff',
primaryColorHover: '#306eff',
heightMedium: '42px',
},
Layout: {
siderColor: '#f5f5f6'
},
Breadcrumb: {
fontSize: '16px'
},
Dropdown: {
optionTextColorHover: '#fff',
},
InternalSelectMenu: {
optionTextColorActive: '#fff',
},
Upload: {
itemColorHover: '#F3F3F5FF',
itemTextColorSuccess: '#18A058FF',
}
})
onMounted(() => {
const isSettingProxy = localStorage.getItem('isSettingProxy')
if(!isSettingProxy) {
localStorage.setItem('proxy', JSON.stringify(proxy))
}
})
</script>
<template>
<n-config-provider :locale="zhCN" :date-locale="dateZhCN" :theme-overrides="themeOverrides">
<n-message-provider>
<n-dialog-provider>
<n-notification-provider>
<MessageContent></MessageContent>
<router-view></router-view>
</n-notification-provider>
</n-dialog-provider>
</n-message-provider>
</n-config-provider>
</template>
<style>
</style>