feat 设置page

This commit is contained in:
Ironsp
2026-08-25 09:01:00 +08:00
parent 72812c5d08
commit b21be2b8dc
5 changed files with 18 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"recommendations": [
"antfu.vite",
// "antfu.vite",
"antfu.iconify",
"antfu.unocss",
"vue.volar",

View File

@@ -8,6 +8,6 @@ definePage({
<template>
<view>
<h1>你好</h1>
<h1>报告</h1>
</view>
</template>

13
src/pages/work/index.vue Normal file
View File

@@ -0,0 +1,13 @@
<script lang="ts" setup>
definePage({
layout: false,
})
// const { value: name } = useQuery('name')
</script>
<template>
<view>
<h1>压实作业</h1>
</view>
</template>

5
src/uni-pages.d.ts vendored
View File

@@ -4,8 +4,9 @@
// Generated by vite-plugin-uni-pages
type _LocationUrl =
"/pages/index" |
"/pages/hi";
"/pages/home/index" |
"/pages/report/index" |
"/pages/work/index";
interface NavigateToOptions {
url: _LocationUrl;