Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
351511a2db |
No files matched your search
@@ -1,3 +1,3 @@
|
|||||||
VITE_ENABLE_MOCK=false
|
VITE_ENABLE_MOCK=false
|
||||||
VITE_API_PREFIX=/api
|
VITE_API_PREFIX=/api
|
||||||
VITE_PROXY_ENDPOINT=http://localhost:8000
|
VITE_PROXY_ENDPOINT=https://bright.yilibili.com/api
|
||||||
Vendored
+6
@@ -14,8 +14,12 @@ declare module 'vue' {
|
|||||||
TAside: typeof import('tdesign-vue-next')['Aside']
|
TAside: typeof import('tdesign-vue-next')['Aside']
|
||||||
TAvatar: typeof import('tdesign-vue-next')['Avatar']
|
TAvatar: typeof import('tdesign-vue-next')['Avatar']
|
||||||
TButton: typeof import('tdesign-vue-next')['Button']
|
TButton: typeof import('tdesign-vue-next')['Button']
|
||||||
|
TCard: typeof import('tdesign-vue-next')['Card']
|
||||||
TCheckbox: typeof import('tdesign-vue-next')['Checkbox']
|
TCheckbox: typeof import('tdesign-vue-next')['Checkbox']
|
||||||
|
TDialog: typeof import('tdesign-vue-next')['Dialog']
|
||||||
TDropdown: typeof import('tdesign-vue-next')['Dropdown']
|
TDropdown: typeof import('tdesign-vue-next')['Dropdown']
|
||||||
|
TForm: typeof import('tdesign-vue-next')['Form']
|
||||||
|
TFormItem: typeof import('tdesign-vue-next')['FormItem']
|
||||||
THeader: typeof import('tdesign-vue-next')['Header']
|
THeader: typeof import('tdesign-vue-next')['Header']
|
||||||
TIcon: typeof import('tdesign-vue-next')['Icon']
|
TIcon: typeof import('tdesign-vue-next')['Icon']
|
||||||
TInput: typeof import('tdesign-vue-next')['Input']
|
TInput: typeof import('tdesign-vue-next')['Input']
|
||||||
@@ -24,5 +28,7 @@ declare module 'vue' {
|
|||||||
TMenu: typeof import('tdesign-vue-next')['Menu']
|
TMenu: typeof import('tdesign-vue-next')['Menu']
|
||||||
TMenuItem: typeof import('tdesign-vue-next')['MenuItem']
|
TMenuItem: typeof import('tdesign-vue-next')['MenuItem']
|
||||||
TSpace: typeof import('tdesign-vue-next')['Space']
|
TSpace: typeof import('tdesign-vue-next')['Space']
|
||||||
|
TTable: typeof import('tdesign-vue-next')['Table']
|
||||||
|
TTag: typeof import('tdesign-vue-next')['Tag']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="icon" href="/favicon.ico">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Yili Admin</title>
|
<title>布兰德后台管理</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
Generated
+9
@@ -557,46 +557,55 @@ packages:
|
|||||||
resolution: {integrity: sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==}
|
resolution: {integrity: sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==}
|
||||||
cpu: [arm]
|
cpu: [arm]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
'@rollup/rollup-linux-arm-musleabihf@4.22.4':
|
'@rollup/rollup-linux-arm-musleabihf@4.22.4':
|
||||||
resolution: {integrity: sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==}
|
resolution: {integrity: sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==}
|
||||||
cpu: [arm]
|
cpu: [arm]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
libc: [musl]
|
||||||
|
|
||||||
'@rollup/rollup-linux-arm64-gnu@4.22.4':
|
'@rollup/rollup-linux-arm64-gnu@4.22.4':
|
||||||
resolution: {integrity: sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==}
|
resolution: {integrity: sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
'@rollup/rollup-linux-arm64-musl@4.22.4':
|
'@rollup/rollup-linux-arm64-musl@4.22.4':
|
||||||
resolution: {integrity: sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==}
|
resolution: {integrity: sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
libc: [musl]
|
||||||
|
|
||||||
'@rollup/rollup-linux-powerpc64le-gnu@4.22.4':
|
'@rollup/rollup-linux-powerpc64le-gnu@4.22.4':
|
||||||
resolution: {integrity: sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==}
|
resolution: {integrity: sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==}
|
||||||
cpu: [ppc64]
|
cpu: [ppc64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
'@rollup/rollup-linux-riscv64-gnu@4.22.4':
|
'@rollup/rollup-linux-riscv64-gnu@4.22.4':
|
||||||
resolution: {integrity: sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==}
|
resolution: {integrity: sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==}
|
||||||
cpu: [riscv64]
|
cpu: [riscv64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
'@rollup/rollup-linux-s390x-gnu@4.22.4':
|
'@rollup/rollup-linux-s390x-gnu@4.22.4':
|
||||||
resolution: {integrity: sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==}
|
resolution: {integrity: sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==}
|
||||||
cpu: [s390x]
|
cpu: [s390x]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
'@rollup/rollup-linux-x64-gnu@4.22.4':
|
'@rollup/rollup-linux-x64-gnu@4.22.4':
|
||||||
resolution: {integrity: sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==}
|
resolution: {integrity: sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
libc: [glibc]
|
||||||
|
|
||||||
'@rollup/rollup-linux-x64-musl@4.22.4':
|
'@rollup/rollup-linux-x64-musl@4.22.4':
|
||||||
resolution: {integrity: sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==}
|
resolution: {integrity: sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
libc: [musl]
|
||||||
|
|
||||||
'@rollup/rollup-win32-arm64-msvc@4.22.4':
|
'@rollup/rollup-win32-arm64-msvc@4.22.4':
|
||||||
resolution: {integrity: sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==}
|
resolution: {integrity: sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==}
|
||||||
|
|||||||
Vendored
-71
@@ -1,71 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* prettier-ignore */
|
|
||||||
// @ts-nocheck
|
|
||||||
// noinspection JSUnusedGlobalSymbols
|
|
||||||
// Generated by unplugin-auto-import
|
|
||||||
// biome-ignore lint: disable
|
|
||||||
export {}
|
|
||||||
declare global {
|
|
||||||
const EffectScope: typeof import('vue')['EffectScope']
|
|
||||||
const computed: typeof import('vue')['computed']
|
|
||||||
const createApp: typeof import('vue')['createApp']
|
|
||||||
const customRef: typeof import('vue')['customRef']
|
|
||||||
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
|
|
||||||
const defineComponent: typeof import('vue')['defineComponent']
|
|
||||||
const effectScope: typeof import('vue')['effectScope']
|
|
||||||
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
|
|
||||||
const getCurrentScope: typeof import('vue')['getCurrentScope']
|
|
||||||
const h: typeof import('vue')['h']
|
|
||||||
const inject: typeof import('vue')['inject']
|
|
||||||
const isProxy: typeof import('vue')['isProxy']
|
|
||||||
const isReactive: typeof import('vue')['isReactive']
|
|
||||||
const isReadonly: typeof import('vue')['isReadonly']
|
|
||||||
const isRef: typeof import('vue')['isRef']
|
|
||||||
const markRaw: typeof import('vue')['markRaw']
|
|
||||||
const nextTick: typeof import('vue')['nextTick']
|
|
||||||
const onActivated: typeof import('vue')['onActivated']
|
|
||||||
const onBeforeMount: typeof import('vue')['onBeforeMount']
|
|
||||||
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
|
|
||||||
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
|
|
||||||
const onDeactivated: typeof import('vue')['onDeactivated']
|
|
||||||
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
|
|
||||||
const onMounted: typeof import('vue')['onMounted']
|
|
||||||
const onRenderTracked: typeof import('vue')['onRenderTracked']
|
|
||||||
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
|
|
||||||
const onScopeDispose: typeof import('vue')['onScopeDispose']
|
|
||||||
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
|
|
||||||
const onUnmounted: typeof import('vue')['onUnmounted']
|
|
||||||
const onUpdated: typeof import('vue')['onUpdated']
|
|
||||||
const onWatcherCleanup: typeof import('vue')['onWatcherCleanup']
|
|
||||||
const provide: typeof import('vue')['provide']
|
|
||||||
const reactive: typeof import('vue')['reactive']
|
|
||||||
const readonly: typeof import('vue')['readonly']
|
|
||||||
const ref: typeof import('vue')['ref']
|
|
||||||
const resolveComponent: typeof import('vue')['resolveComponent']
|
|
||||||
const shallowReactive: typeof import('vue')['shallowReactive']
|
|
||||||
const shallowReadonly: typeof import('vue')['shallowReadonly']
|
|
||||||
const shallowRef: typeof import('vue')['shallowRef']
|
|
||||||
const toRaw: typeof import('vue')['toRaw']
|
|
||||||
const toRef: typeof import('vue')['toRef']
|
|
||||||
const toRefs: typeof import('vue')['toRefs']
|
|
||||||
const toValue: typeof import('vue')['toValue']
|
|
||||||
const triggerRef: typeof import('vue')['triggerRef']
|
|
||||||
const unref: typeof import('vue')['unref']
|
|
||||||
const useAttrs: typeof import('vue')['useAttrs']
|
|
||||||
const useCssModule: typeof import('vue')['useCssModule']
|
|
||||||
const useCssVars: typeof import('vue')['useCssVars']
|
|
||||||
const useId: typeof import('vue')['useId']
|
|
||||||
const useModel: typeof import('vue')['useModel']
|
|
||||||
const useSlots: typeof import('vue')['useSlots']
|
|
||||||
const useTemplateRef: typeof import('vue')['useTemplateRef']
|
|
||||||
const watch: typeof import('vue')['watch']
|
|
||||||
const watchEffect: typeof import('vue')['watchEffect']
|
|
||||||
const watchPostEffect: typeof import('vue')['watchPostEffect']
|
|
||||||
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
|
|
||||||
}
|
|
||||||
// for type re-export
|
|
||||||
declare global {
|
|
||||||
// @ts-ignore
|
|
||||||
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
|
|
||||||
import('vue')
|
|
||||||
}
|
|
||||||
@@ -1,14 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="w-full h-[56px] flex items-center text-2xl cursor-pointer gap-2 font-bold">
|
<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]" />
|
<img src="@/assets/icons/logo.svg" class="w-[32px]" />
|
||||||
Yili Admin
|
布兰德后台
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped></style>
|
||||||
|
|
||||||
</style>
|
|
||||||
@@ -1,25 +1,11 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
||||||
import UserArea from '@/layouts/components/UserArea.vue'
|
import UserArea from '@/layouts/components/UserArea.vue'
|
||||||
import { useRouter } from 'vue-router'
|
|
||||||
|
|
||||||
const router = useRouter()
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="w-full h-full flex items-center justify-between px-6">
|
<div class="w-full h-full flex items-center justify-end px-6">
|
||||||
<TSpace>
|
<UserArea></UserArea>
|
||||||
<!-- <TButton variant="text" shape="square">-->
|
</div>
|
||||||
<!-- <template #icon> <ViewListIcon /></template>-->
|
|
||||||
<!-- </TButton>-->
|
|
||||||
<TButton variant="text" @click="() => router.push({ name: 'platform-manage'
|
|
||||||
})">切换平台</TButton>
|
|
||||||
</TSpace>
|
|
||||||
|
|
||||||
<UserArea></UserArea>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped></style>
|
||||||
|
|
||||||
</style>
|
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
||||||
import { ChevronDownIcon } from 'tdesign-icons-vue-next'
|
import { ChevronDownIcon } from 'tdesign-icons-vue-next'
|
||||||
import type { DropdownOption } from 'tdesign-vue-next'
|
import type { DropdownOption } from 'tdesign-vue-next'
|
||||||
import { useAppStore } from '@/stores/app'
|
import { useAppStore } from '@/stores/app'
|
||||||
|
import type { User } from '@/models/user'
|
||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
|
const currentUser: User = appStore.currentUser
|
||||||
const options: DropdownOption[] = [
|
const options: DropdownOption[] = [
|
||||||
{
|
{
|
||||||
content: '退出登录',
|
content: '退出登录',
|
||||||
@@ -20,7 +21,7 @@ const options: DropdownOption[] = [
|
|||||||
<TButton variant="text">
|
<TButton variant="text">
|
||||||
<div class="flex gap-2 items-center">
|
<div class="flex gap-2 items-center">
|
||||||
<TAvatar size="24px" image="https://tdesign.gtimg.com/site/avatar.jpg"></TAvatar>
|
<TAvatar size="24px" image="https://tdesign.gtimg.com/site/avatar.jpg"></TAvatar>
|
||||||
依力
|
{{ currentUser.username }}
|
||||||
<ChevronDownIcon />
|
<ChevronDownIcon />
|
||||||
</div>
|
</div>
|
||||||
</TButton>
|
</TButton>
|
||||||
@@ -28,6 +29,4 @@ const options: DropdownOption[] = [
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped></style>
|
||||||
|
|
||||||
</style>
|
|
||||||
+9
-2
@@ -1,11 +1,18 @@
|
|||||||
|
import type { User } from "./user";
|
||||||
|
|
||||||
export interface ErrorResponse {
|
export interface ErrorResponse {
|
||||||
code: number;
|
code: number;
|
||||||
message: string;
|
message: string;
|
||||||
}
|
}
|
||||||
export interface BaseModel {
|
export interface BaseModel {
|
||||||
id: number
|
id: number
|
||||||
createdTime: Date
|
createdTime: string
|
||||||
updateTime: Date
|
updateTime: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface AuditBaseModel extends BaseModel {
|
||||||
|
createBy: User
|
||||||
|
updateBy: User
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Paging {
|
export interface Paging {
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
export interface CreateTokenRequest {
|
export interface CreateTokenRequest {
|
||||||
email: string
|
username: string
|
||||||
password: string
|
password: string
|
||||||
}
|
}
|
||||||
+6
-9
@@ -1,15 +1,12 @@
|
|||||||
import type { BaseFilterRequest, BaseModel } from '@/model/base'
|
import type { BaseFilterRequest, AuditBaseModel } from '@/model/base'
|
||||||
import type { Role } from '@/model/role'
|
|
||||||
|
|
||||||
export interface User extends BaseModel{
|
export interface User extends AuditBaseModel{
|
||||||
name: string
|
username: string
|
||||||
email: string
|
locked: boolean
|
||||||
avatar: string
|
enabled: boolean
|
||||||
roles: Role[]
|
|
||||||
permissions: string[]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export interface UserSearchFilter extends BaseFilterRequest {
|
export interface UserSearchFilter extends BaseFilterRequest {
|
||||||
name?: string
|
username?: string
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Background from '@/pages/common/components/Background.vue'
|
import Background from '@/pages/common/components/Background.vue'
|
||||||
import Copyright from '@/components/Copyright.vue'
|
|
||||||
import { LockOnIcon, UserIcon } from 'tdesign-icons-vue-next'
|
import { LockOnIcon, UserIcon } from 'tdesign-icons-vue-next'
|
||||||
import { reactive, ref } from 'vue'
|
import { reactive, ref } from 'vue'
|
||||||
import type { CreateTokenRequest } from '@/model/token'
|
import type { CreateTokenRequest } from '@/model/token'
|
||||||
@@ -9,16 +8,14 @@ import { useAppStore } from '@/stores/app'
|
|||||||
|
|
||||||
const loginForm = reactive<CreateTokenRequest>({
|
const loginForm = reactive<CreateTokenRequest>({
|
||||||
password: '',
|
password: '',
|
||||||
email: ''
|
username: ''
|
||||||
})
|
})
|
||||||
|
|
||||||
const canRegister = ref(false)
|
|
||||||
|
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
|
|
||||||
const handleLogin = async () => {
|
const handleLogin = async () => {
|
||||||
if (!loginForm.email || !loginForm.password) {
|
if (!loginForm.username || !loginForm.password) {
|
||||||
MessagePlugin.error('用户名或密码不能为空')
|
MessagePlugin.error('用户名或密码不能为空')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -28,19 +25,15 @@ const handleLogin = async () => {
|
|||||||
loading.value = false
|
loading.value = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="w-[100vw] h-[100vh] px-20 flex items-center">
|
<div class="w-[100vw] h-[100vh] px-20 flex items-center">
|
||||||
<Background></Background>
|
<Background></Background>
|
||||||
<div class="w-[400px]">
|
<div class="w-[400px]">
|
||||||
<div class="text-4xl font-bold mb-12">欢迎到<br />Yili Admin</div>
|
<div class="text-4xl font-bold mb-12">欢迎到<br />布兰德后台管理系统</div>
|
||||||
<div class="mb-12 flex items-center gap-2" v-if="canRegister">
|
|
||||||
买有账号?<TLink>注册新账号</TLink>
|
|
||||||
</div>
|
|
||||||
<div class="flex flex-col gap-6 mb-11">
|
<div class="flex flex-col gap-6 mb-11">
|
||||||
<TInput size="large" placeholder="用户名/邮箱" v-model="loginForm.email" clearable >
|
<TInput size="large" placeholder="账户" v-model="loginForm.username" clearable>
|
||||||
<template #prefix-icon>
|
<template #prefix-icon>
|
||||||
<UserIcon></UserIcon>
|
<UserIcon></UserIcon>
|
||||||
</template>
|
</template>
|
||||||
@@ -57,15 +50,10 @@ const handleLogin = async () => {
|
|||||||
<LockOnIcon></LockOnIcon>
|
<LockOnIcon></LockOnIcon>
|
||||||
</template>
|
</template>
|
||||||
</TInput>
|
</TInput>
|
||||||
<div class="flex justify-between items-center">
|
|
||||||
<TCheckbox>记住账号</TCheckbox>
|
|
||||||
<TLink>忘记密码?</TLink>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<TButton size="large" :block="true" @click="handleLogin" :loading="loading">
|
<TButton size="large" :block="true" @click="handleLogin" :loading="loading">
|
||||||
{{ loading ? '登录中' : '登录' }}
|
{{ loading ? '登录中' : '登录' }}
|
||||||
</TButton>
|
</TButton>
|
||||||
<Copyright />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ const router = createRouter({
|
|||||||
component: Layout,
|
component: Layout,
|
||||||
path: '/',
|
path: '/',
|
||||||
redirect: {
|
redirect: {
|
||||||
name: 'dashboard'
|
name: 'classify'
|
||||||
},
|
},
|
||||||
children: asyncRoutes
|
children: asyncRoutes
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,10 +14,6 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
return {
|
return {
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
AutoImport({
|
|
||||||
imports:['vue'],
|
|
||||||
dts:"src/auto-import.d.ts" // 会自动生成此文件
|
|
||||||
}),
|
|
||||||
vueDevTools(),
|
vueDevTools(),
|
||||||
AutoImport({
|
AutoImport({
|
||||||
resolvers: [
|
resolvers: [
|
||||||
|
|||||||
Reference in new issue
Block a user