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>
|
||||
<n-result m-auto status="404" description="抱歉,您访问的页面不存在。">
|
||||
<template #icon>
|
||||
<img src="@/assets/images/404.png" width="500" />
|
||||
<img src="@/assets/images/404.webp" width="500" />
|
||||
</template>
|
||||
<template #footer>
|
||||
<n-button @click="replace('/')">返回首页</n-button>
|
||||
|
@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<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>
|
||||
<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 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>
|
||||
<n-input
|
||||
v-model:value="loginInfo.name"
|
||||
@ -14,8 +14,7 @@
|
||||
class="text-16 items-center h-50 pl-10"
|
||||
placeholder="admin"
|
||||
:maxlength="20"
|
||||
>
|
||||
</n-input>
|
||||
/>
|
||||
</div>
|
||||
<div mt-30>
|
||||
<n-input
|
||||
@ -34,7 +33,9 @@
|
||||
</div>
|
||||
|
||||
<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>
|
||||
@ -46,7 +47,7 @@
|
||||
import { lStorage } from '@/utils/cache'
|
||||
import { setToken } from '@/utils/token'
|
||||
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'
|
||||
|
||||
const title = import.meta.env.VITE_APP_TITLE
|
||||
|
Loading…
Reference in New Issue
Block a user