This commit is contained in:
lightings 2023-01-18 16:36:41 +08:00
parent 136ed4702e
commit 8b7c723d87
7 changed files with 19 additions and 4 deletions

1
components.d.ts vendored
View File

@ -14,5 +14,6 @@ declare module '@vue/runtime-core' {
RouterView: typeof import('vue-router')['RouterView']
SmallTag: typeof import('./src/components/SmallTag.vue')['default']
UserCard: typeof import('./src/components/UserCard.vue')['default']
UserLinksBox: typeof import('./src/components/common/UserLinksBox.vue')['default']
}
}

View File

@ -1,5 +1,4 @@
<template>
<a-layout>
<a-layout-header :style="{ padding: '0px', position: 'fixed', zIndex: 1, width: '100%' }">
<a-row justify="space-between" align="middle">
@ -54,6 +53,10 @@ async function login(event) {
}
}
async function profile(event) {
router.push('profiles');
}
</script>
<style lang=less>

View File

@ -42,6 +42,10 @@ const routes = [
}
],
},
{
path: '/profiles',
component: () => import(/* webpackChunkName: "profiles" */ '../views/ProfilesView.vue'),
},
]
const router = createRouter({

View File

@ -8,7 +8,6 @@
<script setup>
import gsap from 'gsap';
import { onMounted } from "@vue/runtime-core";
import UserLinksBox from "./common/UserLinksBox.vue";
onMounted(()=>{
gsap.to(".linkbox", {

View File

@ -0,0 +1,10 @@
<template>
</template>
<script setup>
</script>
<style lang="less" scoped>
</style>

View File

@ -49,8 +49,6 @@
</template>
<script setup>
import UserLinksBox from '../common/UserLinksBox.vue';
import UserCard from '@/components/UserCard.vue';
import { useAppStore } from '@/store/app';