mirror of
https://github.com/certd/certd.git
synced 2026-07-12 16:27:34 +08:00
perf: 添加全新的未登录首页和路由配置
- 新增产品介绍页,包含导航、功能展示和页脚 - 修改默认首页路由为/index - 添加点击logo跳转首页功能 - 更新版权信息显示逻辑
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div id="userLayout" :class="['user-layout-wrapper']">
|
||||
<div class="login-container flex justify-start dark:background-[#141414]">
|
||||
<div class="user-layout-content flex-col justify-start">
|
||||
<div class="top flex flex-col items-center justify-start">
|
||||
<div class="top flex flex-col items-center justify-start pointer" @click="goHome">
|
||||
<div class="header flex flex-row items-center">
|
||||
<img :src="siteInfo.loginLogo" class="logo" alt="logo" />
|
||||
<span class="title"></span>
|
||||
@@ -15,10 +15,13 @@
|
||||
</div>
|
||||
<div class="footer">
|
||||
<div class="copyright">
|
||||
<span v-if="!settingStore.isComm">
|
||||
<span>
|
||||
<span>Copyright</span>
|
||||
<span>©</span>
|
||||
<span>{{ envRef.COPYRIGHT_YEAR }}</span>
|
||||
</span>
|
||||
<span v-if="!settingStore.isComm">
|
||||
<a-divider type="vertical" />
|
||||
<span>
|
||||
<a :href="envRef.COPYRIGHT_URL" target="_blank">{{ envRef.COPYRIGHT_NAME }}</a>
|
||||
</span>
|
||||
@@ -47,6 +50,7 @@ import { env } from "/@/utils/util.env";
|
||||
import { computed, ref, Ref } from "vue";
|
||||
import { useSettingStore } from "/@/store/settings";
|
||||
import { SiteInfo, SysPublicSetting } from "/@/store/settings/api.basic";
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
const envRef = ref(env);
|
||||
const settingStore = useSettingStore();
|
||||
@@ -56,6 +60,10 @@ const siteInfo: Ref<SiteInfo> = computed(() => {
|
||||
const sysPublic: Ref<SysPublicSetting> = computed(() => {
|
||||
return settingStore.sysPublic;
|
||||
});
|
||||
const router = useRouter();
|
||||
function goHome() {
|
||||
router.replace("/");
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
|
||||
Reference in New Issue
Block a user