Lee 2 tygodni temu
rodzic
commit
5772f06c76

+ 13 - 0
app/components/index.vue

@@ -0,0 +1,13 @@
+<!--
+ * @Author: LiZhiWei
+ * @Date: 2026-01-09 17:31:19
+ * @LastEditors: LiZhiWei
+ * @LastEditTime: 2026-01-09 17:31:28
+ * @Description: 
+-->
+<template>
+  <div></div>
+</template>
+
+<script setup lang="ts"></script>
+<style scoped lang="scss"></style>

+ 0 - 0
app/composables/index.ts


+ 15 - 0
app/layouts/default/index.vue

@@ -0,0 +1,15 @@
+<!--
+ * @Author: LiZhiWei
+ * @Date: 2026-01-09 17:32:06
+ * @LastEditors: LiZhiWei
+ * @LastEditTime: 2026-01-09 17:32:29
+ * @Description: 
+-->
+<template>
+  <div>
+    <slot />
+  </div>
+</template>
+
+<script setup lang="ts"></script>
+<style scoped lang="scss"></style>

+ 0 - 0
app/middleware/index.ts


+ 2 - 10
app/pages/index/index.vue

@@ -2,19 +2,11 @@
  * @Author: LiZhiWei
  * @Date: 2026-01-09 15:47:55
  * @LastEditors: LiZhiWei
- * @LastEditTime: 2026-01-09 15:48:02
+ * @LastEditTime: 2026-01-09 17:36:09
  * @Description: 
 -->
 <template>
-  <div class="p-10 flex flex-col items-center gap-4">
-    <h1 class="text-2xl font-bold">Nuxt 4 Template Test</h1>
-
-    <div class="flex gap-4">
-      <el-button type="primary" @click="showSuccessMessage">测试成功提示</el-button>
-      <el-button type="danger" @click="triggerHttpError">测试 HTTP 错误 (401)</el-button>
-      <el-button type="warning" @click="triggerServerError">测试服务器错误 (500)</el-button>
-    </div>
-  </div>
+  <div><NuxtWelcome></NuxtWelcome></div>
 </template>
 
 <script setup lang="ts">