website title clickable.

This commit is contained in:
2023-04-17 12:50:45 +08:00
parent 3ff7749395
commit 3358082213

View File

@@ -87,12 +87,18 @@ const options: Array<DropdownOption | DropdownDividerOption> = [
function run() {
console.log(code.value)
}
function goHome() {
router.push("/")
}
</script>
<template>
<n-space justify="space-between" align="center">
<n-space align="center">
<div class="websiteTitle">{{ configStore.config?.website_name }}</div>
<div class="websiteTitle" @click="goHome">
{{ configStore.config?.website_name }}
</div>
<n-menu
v-if="isDesktop"
mode="horizontal"
@@ -139,5 +145,6 @@ function run() {
.websiteTitle {
font-size: 18px;
margin-left: 8px;
cursor: pointer;
}
</style>