mirror of
https://github.com/unilei/aipan-netdisk-search.git
synced 2024-11-25 16:32:42 +08:00
add error page
This commit is contained in:
parent
db50f5549f
commit
8a72c9debf
13
error.vue
Normal file
13
error.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<script setup>
|
||||
const error = useError()
|
||||
|
||||
</script>
|
||||
<template>
|
||||
<div class="text-center bg-gray-100 flex flex-col items-center justify-center min-h-screen">
|
||||
<h1 class="text-9xl font-bold text-gray-600">{{ error.statusCode }}</h1>
|
||||
<p class="mt-4 text-2xl text-gray-700">{{ error.message }}</p>
|
||||
|
||||
<a href="/"
|
||||
class="mt-6 inline-block px-6 py-3 text-white bg-blue-600 rounded-lg hover:bg-blue-500 transition duration-300">返回首页</a>
|
||||
</div>
|
||||
</template>
|
@ -3,6 +3,7 @@ export default defineNuxtConfig({
|
||||
|
||||
app: {
|
||||
// head
|
||||
pageTransition: { name: 'page', mode: 'out-in' },
|
||||
head: {
|
||||
title: '爱盼-网盘资源搜索',
|
||||
meta: [
|
||||
|
@ -79,7 +79,7 @@ export default defineEventHandler(async (event) => {
|
||||
key: '1cc5d119477a952d96e63d2a92cb4b188eb4189c758be1fb648caeae9cfc08eb',
|
||||
encryptedData: '0a2471511ba2e5ed3b5c4daa6ec0bae30d295361d47455731675d39b09ecdcbc'
|
||||
});
|
||||
|
||||
console.log(decryptedData);
|
||||
const token = "i69";
|
||||
// 使用通用 fetchApi 函数并行请求多个 API
|
||||
const apiUrls = [
|
||||
|
@ -78,7 +78,7 @@ export default defineEventHandler(async (event) => {
|
||||
key: '5516ed9c11ea4ac872c3da09a83be841b4d60ecd94a9007a85a962a9dda01957',
|
||||
encryptedData: '9f53109a927abbbafe5c7cd79774d46f55613ef21e140528423867daaac83150'
|
||||
});
|
||||
|
||||
console.log(decryptedData);
|
||||
const token = "i69";
|
||||
// 使用通用 fetchApi 函数并行请求多个 API
|
||||
const apiUrls = [
|
||||
|
@ -80,6 +80,7 @@ export default defineEventHandler(async (event) => {
|
||||
key: '2e9096e311ab53f32776f87f669dbf9b04e2e4a12cd10db47b8d814ff7af605b',
|
||||
encryptedData: 'ee7b334d32778411441fdf6e891e51d4143558b6027a0b06a45f4e1fe9a9d137'
|
||||
});
|
||||
console.log(decryptedData);
|
||||
// 获取 token
|
||||
const token: Token = await $fetch(`${decryptedData}/v/api/gettoken`);
|
||||
// 使用通用 fetchApi 函数并行请求多个 API
|
||||
|
Loading…
Reference in New Issue
Block a user