perf: png replace with webp
This commit is contained in:
parent
3a415703d4
commit
296d5ea6f0
Binary file not shown.
Before Width: | Height: | Size: 46 KiB |
BIN
src/assets/images/404.webp
Normal file
BIN
src/assets/images/404.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
Before Width: | Height: | Size: 57 KiB |
BIN
src/assets/images/login_banner.webp
Normal file
BIN
src/assets/images/login_banner.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Binary file not shown.
Before Width: | Height: | Size: 23 KiB |
BIN
src/assets/images/login_bg.webp
Normal file
BIN
src/assets/images/login_bg.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
@ -2,7 +2,7 @@
|
|||||||
<div h-full flex>
|
<div h-full flex>
|
||||||
<n-result m-auto status="404" description="抱歉,您访问的页面不存在。">
|
<n-result m-auto status="404" description="抱歉,您访问的页面不存在。">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<img src="@/assets/images/404.png" width="500" />
|
<img src="@/assets/images/404.webp" width="500" />
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<n-button @click="replace('/')">返回首页</n-button>
|
<n-button @click="replace('/')">返回首页</n-button>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="cus-scroll h-full py-15 flex-col overflow-auto bg-cover" :style="{ backgroundImage: `url(${bgImg})` }">
|
<div class="cus-scroll h-full py-15 flex-col overflow-auto bg-cover" :style="{ backgroundImage: `url(${bgImg})` }">
|
||||||
<div m-auto p-15 f-c-c min-w-345 rounded-10 card-shadow bg-white bg-opacity-60>
|
<div m-auto p-15 f-c-c min-w-345 rounded-10 card-shadow bg-white dark:bg-dark bg-opacity-60>
|
||||||
<div w-380 hidden md:block px-20 py-35>
|
<div w-380 hidden md:block px-20 py-35>
|
||||||
<img src="@/assets/images/login_banner.png" w-full alt="login_banner" />
|
<img src="@/assets/images/login_banner.webp" w-full alt="login_banner" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div w-320 flex-col px-20 py-35>
|
<div w-320 flex-col px-20 py-35>
|
||||||
<h5 f-c-c text-24 font-normal color="#6a6a6a"><icon-custom-logo mr-30 text-50 />{{ title }}</h5>
|
<h5 f-c-c text-24 font-normal color="#6a6a6a"><icon-custom-logo mr-30 text-50 color-primary />{{ title }}</h5>
|
||||||
<div mt-30>
|
<div mt-30>
|
||||||
<n-input
|
<n-input
|
||||||
v-model:value="loginInfo.name"
|
v-model:value="loginInfo.name"
|
||||||
@ -14,8 +14,7 @@
|
|||||||
class="text-16 items-center h-50 pl-10"
|
class="text-16 items-center h-50 pl-10"
|
||||||
placeholder="admin"
|
placeholder="admin"
|
||||||
:maxlength="20"
|
:maxlength="20"
|
||||||
>
|
/>
|
||||||
</n-input>
|
|
||||||
</div>
|
</div>
|
||||||
<div mt-30>
|
<div mt-30>
|
||||||
<n-input
|
<n-input
|
||||||
@ -34,7 +33,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div mt-20>
|
<div mt-20>
|
||||||
<n-button w-full h-50 rounded-5 text-16 type="primary" :loading="loging" @click="handleLogin">登录</n-button>
|
<n-button w-full h-50 rounded-5 text-16 type="primary" :loading="loging" @click="handleLogin">
|
||||||
|
登录
|
||||||
|
</n-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -46,7 +47,7 @@
|
|||||||
import { lStorage } from '@/utils/cache'
|
import { lStorage } from '@/utils/cache'
|
||||||
import { setToken } from '@/utils/token'
|
import { setToken } from '@/utils/token'
|
||||||
import { useStorage } from '@vueuse/core'
|
import { useStorage } from '@vueuse/core'
|
||||||
import bgImg from '@/assets/images/login_bg.jpg'
|
import bgImg from '@/assets/images/login_bg.webp'
|
||||||
import api from './api'
|
import api from './api'
|
||||||
|
|
||||||
const title = import.meta.env.VITE_APP_TITLE
|
const title = import.meta.env.VITE_APP_TITLE
|
||||||
|
Loading…
Reference in New Issue
Block a user