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