mirror of
https://github.com/iLay1678/i-tools.git
synced 2025-07-05 19:49:00 +08:00
排序
This commit is contained in:
parent
5da67e54e8
commit
dc1ba47be6
@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>爱拓工具箱</title>
|
<title>爱拓工具箱</title>
|
||||||
</head>
|
</head>
|
||||||
@ -9,7 +10,8 @@
|
|||||||
<NuxtLink v-if="tool.available" :to="tool.path" class="block">
|
<NuxtLink v-if="tool.available" :to="tool.path" class="block">
|
||||||
<a-card hoverable>
|
<a-card hoverable>
|
||||||
<template #title>
|
<template #title>
|
||||||
<h2 class="text-xl font-medium" :class="tool.available ? 'text-gray-800' : 'text-gray-400'">
|
<h2 class="text-xl font-medium"
|
||||||
|
:class="tool.available ? 'text-gray-800' : 'text-gray-400'">
|
||||||
{{ tool.title }}
|
{{ tool.title }}
|
||||||
</h2>
|
</h2>
|
||||||
</template>
|
</template>
|
||||||
@ -31,6 +33,12 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
const tools = [
|
const tools = [
|
||||||
{
|
{
|
||||||
|
id: 999,
|
||||||
|
title: '敬请期待',
|
||||||
|
description: '更多工具正在开发中...',
|
||||||
|
path: '',
|
||||||
|
available: false
|
||||||
|
}, {
|
||||||
id: 1,
|
id: 1,
|
||||||
title: '阿里云盘TV授权',
|
title: '阿里云盘TV授权',
|
||||||
description: '获取阿里云盘TV端的授权令牌',
|
description: '获取阿里云盘TV端的授权令牌',
|
||||||
@ -44,15 +52,8 @@ const tools = [
|
|||||||
path: '/move-car',
|
path: '/move-car',
|
||||||
available: true
|
available: true
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 3,
|
].sort((a, b) => a.id - b.id);
|
||||||
title: '敬请期待',
|
|
||||||
description: '更多工具正在开发中...',
|
|
||||||
path: '',
|
|
||||||
available: false
|
|
||||||
},
|
|
||||||
];
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped></style>
|
||||||
</style>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user