提交 26f46413 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 342fa8d4
...@@ -7,28 +7,22 @@ export default { name: 'AppHeader' } ...@@ -7,28 +7,22 @@ export default { name: 'AppHeader' }
<template> <template>
<header class="app-header"> <header class="app-header">
<div class="logo"> <div class="logo">
<router-link to="/" <router-link to="/">
><img src="https://webapp-pub.ezijing.com/project_online/fdc/fdc_header_logo.png" <img src="https://webapp-pub.ezijing.com/project_online/fdc/fdc_header_logo.png" />
/></router-link> </router-link>
</div> </div>
</header> </header>
</template> </template>
<style lang="scss"> <style lang="scss">
.app-header { .app-header {
height: 64px; height: 110px;
position: absolute; padding: 0 72px;
top: 23px;
left: 72px;
z-index: 1000; z-index: 1000;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
background-color: #fff; background-color: #fff;
color: #fff; color: #fff;
.logo {
width: 120px;
height: 100%;
}
} }
</style> </style>
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
.app-main { .app-main {
position: relative; position: relative;
flex: 1; flex: 1;
top: 110px;
} }
.app-main-inner { .app-main-inner {
margin: 0 auto; margin: 0 auto;
......
...@@ -4,6 +4,7 @@ import { ref } from 'vue' ...@@ -4,6 +4,7 @@ import { ref } from 'vue'
import CardQuery from '../components/CardQuery.vue' import CardQuery from '../components/CardQuery.vue'
import StudyLogin from '../components/StudyLogin.vue' import StudyLogin from '../components/StudyLogin.vue'
import ManagerLogin from '../components/ManagerLogin.vue' import ManagerLogin from '../components/ManagerLogin.vue'
import { useRoute } from 'vue-router'
const tabList: Array<{ tabName: string }> = [ const tabList: Array<{ tabName: string }> = [
{ {
tabName: '证书查询' tabName: '证书查询'
...@@ -15,7 +16,9 @@ const tabList: Array<{ tabName: string }> = [ ...@@ -15,7 +16,9 @@ const tabList: Array<{ tabName: string }> = [
tabName: '管理员登录' tabName: '管理员登录'
} }
] ]
const activeIndex = ref(1) const route = useRoute()
const index = route.query.index ? parseInt(route.query.index as string) : 1
const activeIndex = ref(index)
function handleTabChange(index: number) { function handleTabChange(index: number) {
activeIndex.value = index activeIndex.value = index
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论