website title clickable.
This commit is contained in:
@@ -87,12 +87,18 @@ const options: Array<DropdownOption | DropdownDividerOption> = [
|
|||||||
function run() {
|
function run() {
|
||||||
console.log(code.value)
|
console.log(code.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function goHome() {
|
||||||
|
router.push("/")
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<n-space justify="space-between" align="center">
|
<n-space justify="space-between" align="center">
|
||||||
<n-space 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
|
<n-menu
|
||||||
v-if="isDesktop"
|
v-if="isDesktop"
|
||||||
mode="horizontal"
|
mode="horizontal"
|
||||||
@@ -139,5 +145,6 @@ function run() {
|
|||||||
.websiteTitle {
|
.websiteTitle {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user