From 1a0cecdfec479d399af3c71d0804f857f10a7b85 Mon Sep 17 00:00:00 2001
From: cxy <1276771477@qq.com>
Date: Thu, 17 Oct 2024 14:22:55 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8D=95=E7=9A=84=E5=87=A0=E4=B8=AAvu?=
=?UTF-8?q?e=E7=9A=84=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
system/src/components/LoginCourier.vue | 12 ++++++++++++
system/src/components/LoginUser.vue | 25 +++++++++++++++++++++++++
system/src/router/index.js | 19 +++++++++++++++++++
system/vite.config.js | 21 ++++++++++++++++++++-
4 files changed, 76 insertions(+), 1 deletion(-)
create mode 100644 system/src/components/LoginCourier.vue
create mode 100644 system/src/components/LoginUser.vue
create mode 100644 system/src/router/index.js
diff --git a/system/src/components/LoginCourier.vue b/system/src/components/LoginCourier.vue
new file mode 100644
index 0000000..fcafe39
--- /dev/null
+++ b/system/src/components/LoginCourier.vue
@@ -0,0 +1,12 @@
+//快递员登录页面
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/system/src/components/LoginUser.vue b/system/src/components/LoginUser.vue
new file mode 100644
index 0000000..5d89fc5
--- /dev/null
+++ b/system/src/components/LoginUser.vue
@@ -0,0 +1,25 @@
+//用户登陆界面
+
+
+
+
+
+
\ No newline at end of file
diff --git a/system/src/router/index.js b/system/src/router/index.js
new file mode 100644
index 0000000..0ecf337
--- /dev/null
+++ b/system/src/router/index.js
@@ -0,0 +1,19 @@
+
+import { createRouter, createWebHistory } from 'vue-router';
+import HomeView from '../views/HomeView.vue';
+
+const routes = [
+ {
+ path: '/',
+ name: 'Home',
+ component: HomeView,
+ },
+ // 其他路由...
+];
+
+const router = createRouter({
+ history: createWebHistory(process.env.BASE_URL),
+ routes,
+});
+
+export default router;
\ No newline at end of file
diff --git a/system/vite.config.js b/system/vite.config.js
index 05c1740..5e768ca 100644
--- a/system/vite.config.js
+++ b/system/vite.config.js
@@ -1,7 +1,26 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
+// // https://vitejs.dev/config/
+// export default defineConfig({
+// plugins: [vue()],
+// })
+
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
-})
+ resolve: {
+ alias: {
+ '@/': fileURLToPath(new URL('./src', import.meta.url))
+ }
+ },
+ server: {
+ proxy: {
+ '/api': {
+ target: 'http://localhost:8080',
+ changeOrigin: true,
+ rewrite: (path) => path.replace(/^\/api/, '')
+ }
+ }
+ }
+});
\ No newline at end of file