chore: Update page links on index-page.vue
All checks were successful
CI / cache-and-install (push) Successful in 55s

This commit is contained in:
严浩
2024-08-14 11:45:19 +08:00
parent 4fe1f5fd32
commit 18c90f4e09
3 changed files with 15 additions and 7 deletions

View File

@ -8,7 +8,7 @@ export const usePageData = defineBasicLoader(
async (...args) => { async (...args) => {
console.log('[DefineLoaderFn]', 'args :>> ', args); console.log('[DefineLoaderFn]', 'args :>> ', args);
const [route] = args; const [route] = args;
await new Promise((resolve) => setTimeout(resolve, 520)); await new Promise((resolve) => setTimeout(resolve, 777));
return { idFromPreviousPage: route.params.id, someOtherData: 'someOtherData' }; return { idFromPreviousPage: route.params.id, someOtherData: 'someOtherData' };
}, },
{ {

View File

@ -6,6 +6,9 @@ definePage({
<template> <template>
<h1>Index Page</h1> <h1>Index Page</h1>
<router-link :to="{ name: 'DataLoadersId', params: { id: 520 } }">Data Loaders</router-link> <ul>
<router-link :to="{ name: 'TsEnumUtil' }">TS Enum Util</router-link> <li><router-link :to="{ name: 'DataLoadersId', params: { id: 520 } }">Data Loaders</router-link></li>
<li><router-link :to="{ name: 'TsEnumUtil' }">TS Enum Util</router-link></li>
<li><router-link :to="{ name: 'SomePage' }">Some Page</router-link></li>
</ul>
</template> </template>

View File

@ -1,9 +1,14 @@
<template> <template>
<div> <div>
<h1>Some Page</h1> <h1>Some Page</h1>
<button @click="$router.back()">Back</button>
<main>
<ul>
<li>
密码强度:
<a target="_blank" href="https://zxcvbn-ts.github.io/zxcvbn/guide/getting-started/">@zxcvbn-ts/core</a>
</li>
</ul>
</main>
</div> </div>
</template> </template>
<script setup lang="ts"></script>
<style scoped></style>