style: 💄 格式化代码

This commit is contained in:
log1997
2026-01-04 11:21:49 +08:00
parent 9e25b02d9c
commit a9462fa119
110 changed files with 2146 additions and 2149 deletions

View File

@@ -1,10 +1,10 @@
export const footerList = {
data: [
{
id: 0,
name: 'Github',
url: 'https://github.com/LOG1997',
icon: 'github',
},
],
data: [
{
id: 0,
name: 'Github',
url: 'https://github.com/LOG1997',
icon: 'github',
},
],
}

View File

@@ -2,7 +2,7 @@
import { footerList } from './config'
function skip(url: string) {
window.open(url)
window.open(url)
}
</script>

View File

@@ -1,17 +1,17 @@
export const navList = [
{
id: 0,
name: '首页',
url: 'home',
},
{
id: 1,
name: '项目',
url: 'project',
},
{
id: 2,
name: '关于',
url: 'about',
},
{
id: 0,
name: '首页',
url: 'home',
},
{
id: 1,
name: '项目',
url: 'project',
},
{
id: 2,
name: '关于',
url: 'about',
},
]

View File

@@ -2,7 +2,7 @@
import { navList } from './config'
function skip(url: string) {
window.open(url, '_self')
window.open(url, '_self')
}
</script>

View File

@@ -16,18 +16,18 @@ const settingRef = ref()
const fullScreenRef = ref()
function enterConfig() {
router.push('/log-lottery/config')
router.push('/log-lottery/config')
}
function enterHome() {
router.push('/log-lottery')
router.push('/log-lottery')
}
onMounted(() => {
settingRef.value.addEventListener('mouseenter', () => {
fullScreenRef.value.style.display = 'block'
})
settingRef.value.addEventListener('mouseleave', () => {
fullScreenRef.value.style.display = 'none'
})
settingRef.value.addEventListener('mouseenter', () => {
fullScreenRef.value.style.display = 'block'
})
settingRef.value.addEventListener('mouseleave', () => {
fullScreenRef.value.style.display = 'none'
})
})
</script>

View File

@@ -15,10 +15,10 @@ const mainContainer = ref<HTMLElement | null>(null)
const { y } = useScroll(mainContainer)
function scrollToTop() {
mainContainer.value?.scrollTo({
top: 0,
behavior: 'smooth',
})
mainContainer.value?.scrollTo({
top: 0,
behavior: 'smooth',
})
}
</script>