feat(/pages/common):完成登陆页文案、组件样式修改、登陆接口对接
This commit was merged in pull request #2.
This commit is contained in:
1 parent
4eeba56696
commit
351511a2db
12 files changed
+43
-66
No files matched your search
@@ -1,14 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<template>
|
||||
<div class="w-full h-[56px] flex items-center text-2xl cursor-pointer gap-2 font-bold">
|
||||
<img src="@/assets/icons/logo.svg" class="w-[32px]" />
|
||||
Yili Admin
|
||||
布兰德后台
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
<style scoped></style>
|
||||
@@ -1,25 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
import UserArea from '@/layouts/components/UserArea.vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
const router = useRouter()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="w-full h-full flex items-center justify-between px-6">
|
||||
<TSpace>
|
||||
<!-- <TButton variant="text" shape="square">-->
|
||||
<!-- <template #icon> <ViewListIcon /></template>-->
|
||||
<!-- </TButton>-->
|
||||
<TButton variant="text" @click="() => router.push({ name: 'platform-manage'
|
||||
})">切换平台</TButton>
|
||||
</TSpace>
|
||||
|
||||
<UserArea></UserArea>
|
||||
</div>
|
||||
<div class="w-full h-full flex items-center justify-end px-6">
|
||||
<UserArea></UserArea>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
<style scoped></style>
|
||||
@@ -1,9 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
import { ChevronDownIcon } from 'tdesign-icons-vue-next'
|
||||
import type { DropdownOption } from 'tdesign-vue-next'
|
||||
import { useAppStore } from '@/stores/app'
|
||||
import type { User } from '@/models/user'
|
||||
const appStore = useAppStore()
|
||||
const currentUser: User = appStore.currentUser
|
||||
const options: DropdownOption[] = [
|
||||
{
|
||||
content: '退出登录',
|
||||
@@ -20,7 +21,7 @@ const options: DropdownOption[] = [
|
||||
<TButton variant="text">
|
||||
<div class="flex gap-2 items-center">
|
||||
<TAvatar size="24px" image="https://tdesign.gtimg.com/site/avatar.jpg"></TAvatar>
|
||||
依力
|
||||
{{ currentUser.username }}
|
||||
<ChevronDownIcon />
|
||||
</div>
|
||||
</TButton>
|
||||
@@ -28,6 +29,4 @@ const options: DropdownOption[] = [
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
<style scoped></style>
|
||||
Reference in new issue
Block a user