diff --git a/bun.lockb b/bun.lockb index e31a977..80b95c2 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index b6908a1..370f52d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "tailwindcss": "^3.4.14", "typescript": "^5.5.3", "typescript-eslint": "^8.11.0", - "vite": "^5.4.8" + "vite": "^5.4.8", + "vite-plugin-pages": "^0.32.3" }, "lint-staged": { "*.(ts|vue)": [ diff --git a/src/App.vue b/src/App.vue index 21c6126..bbb0ea4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,37 +1,7 @@ - + - - - - 组件的基本导入使用 - 卡片组件的描述 - - - 卡片组件的内容填充区 - - - 卡片组件的表尾 - Button - - + - \ No newline at end of file + diff --git a/src/layouts/DefaultLayout.vue b/src/layouts/DefaultLayout.vue new file mode 100644 index 0000000..1d46c38 --- /dev/null +++ b/src/layouts/DefaultLayout.vue @@ -0,0 +1,5 @@ + + + + + diff --git a/src/main.ts b/src/main.ts index 70f703c..e90c909 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,6 @@ import { createApp } from "vue"; import App from "./App.vue"; import "@/assets/styles/index.scss"; +import router from "@/router"; -createApp(App).mount("#app"); +createApp(App).use(router).mount("#app"); diff --git a/src/pages/dashboard/index.vue b/src/pages/dashboard/index.vue new file mode 100644 index 0000000..102cf06 --- /dev/null +++ b/src/pages/dashboard/index.vue @@ -0,0 +1,5 @@ + + +控制台 + + diff --git a/src/pages/index.vue b/src/pages/index.vue new file mode 100644 index 0000000..e50b417 --- /dev/null +++ b/src/pages/index.vue @@ -0,0 +1,5 @@ + + +首页 + + diff --git a/src/pages/message/index.vue b/src/pages/message/index.vue new file mode 100644 index 0000000..b9016c1 --- /dev/null +++ b/src/pages/message/index.vue @@ -0,0 +1,5 @@ + + +消息中心 + + diff --git a/src/pages/profile/index.vue b/src/pages/profile/index.vue new file mode 100644 index 0000000..814fb07 --- /dev/null +++ b/src/pages/profile/index.vue @@ -0,0 +1,5 @@ + + +用户中心 + + diff --git a/src/pages/recruitment/index.vue b/src/pages/recruitment/index.vue new file mode 100644 index 0000000..b68a3b1 --- /dev/null +++ b/src/pages/recruitment/index.vue @@ -0,0 +1,5 @@ + + +招新 + + diff --git a/src/router/index.ts b/src/router/index.ts index e69de29..53c8389 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -0,0 +1,7 @@ +import { createRouter, createWebHistory } from "vue-router"; +import routes from "~pages"; +const router = createRouter({ + history: createWebHistory(), + routes, +}); +export default router; diff --git a/src/shared/loading-status/LoadingLogin.vue b/src/shared/loading-status/LoadingLogin.vue deleted file mode 100644 index 6536b25..0000000 --- a/src/shared/loading-status/LoadingLogin.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - l - o - a - d - i - n - g - . - . - . - - - - - - - \ No newline at end of file diff --git a/src/shared/loading-status/LoadingPage.vue b/src/shared/loading-status/LoadingPage.vue deleted file mode 100644 index 1b75ce9..0000000 --- a/src/shared/loading-status/LoadingPage.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/shared/loading-status/NoData.vue b/src/shared/loading-status/NoData.vue deleted file mode 100644 index b78e827..0000000 --- a/src/shared/loading-status/NoData.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - 暂无数据 - - - - - \ No newline at end of file diff --git a/src/shared/loading-status/NoInter.vue b/src/shared/loading-status/NoInter.vue deleted file mode 100644 index 2349db1..0000000 --- a/src/shared/loading-status/NoInter.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - Sorry~ - 网页走丢了,请稍后重试 - 返回 - - - - - - - \ No newline at end of file diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 11f02fe..5c48b96 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -1 +1,2 @@ /// +/// diff --git a/vite.config.ts b/vite.config.ts index 07561b5..58799a4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,6 +4,7 @@ import { resolve } from "node:path"; import vue from "@vitejs/plugin-vue"; import autoprefixer from "autoprefixer"; import tailwind from "tailwindcss"; +import Pages from "vite-plugin-pages"; export default defineConfig({ css: { @@ -16,7 +17,13 @@ export default defineConfig({ }, }, }, - plugins: [vue()], + plugins: [ + vue(), + Pages({ + pagesDir: "src/pages", + extensions: ["vue"], + }), + ], resolve: { alias: { "@": resolve(__dirname, "./src"),
暂无数据
网页走丢了,请稍后重试