style: 💄 格式化代码
This commit is contained in:
@@ -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',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { footerList } from './config'
|
||||
|
||||
function skip(url: string) {
|
||||
window.open(url)
|
||||
window.open(url)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { navList } from './config'
|
||||
|
||||
function skip(url: string) {
|
||||
window.open(url, '_self')
|
||||
window.open(url, '_self')
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user