diff --git a/package-lock.json b/package-lock.json index 3c87a63..c825759 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^5.2.1", - "vite": "^6.2.0" + "vite": "^6.2.6" } }, "node_modules/@babel/helper-string-parser": { @@ -1150,10 +1150,9 @@ }, "node_modules/vite": { "version": "6.2.6", - "resolved": "https://mirrors.huaweicloud.com/repository/npm/vite/-/vite-6.2.6.tgz", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.6.tgz", "integrity": "sha512-9xpjNl3kR4rVDZgPNdTL0/c6ao4km69a/2ihNQbcANz8RuCOK3hQBmLSJf3bRKVQjVMda+YvizNE8AwvogcPbw==", "dev": true, - "license": "MIT", "dependencies": { "esbuild": "^0.25.0", "postcss": "^8.5.3", @@ -1860,7 +1859,7 @@ }, "vite": { "version": "6.2.6", - "resolved": "https://mirrors.huaweicloud.com/repository/npm/vite/-/vite-6.2.6.tgz", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.6.tgz", "integrity": "sha512-9xpjNl3kR4rVDZgPNdTL0/c6ao4km69a/2ihNQbcANz8RuCOK3hQBmLSJf3bRKVQjVMda+YvizNE8AwvogcPbw==", "dev": true, "requires": { diff --git a/package.json b/package.json index 835f996..50ec874 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,6 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^5.2.1", - "vite": "^6.2.0" + "vite": "^6.2.6" } } diff --git a/public/bg.png b/public/bg.png new file mode 100644 index 0000000..211b98b Binary files /dev/null and b/public/bg.png differ diff --git a/public/bg2.jpg b/public/bg2.jpg new file mode 100644 index 0000000..5deb92f Binary files /dev/null and b/public/bg2.jpg differ diff --git a/public/pan.png b/public/pan.png new file mode 100644 index 0000000..c1b94bd Binary files /dev/null and b/public/pan.png differ diff --git a/public/tanchuang.png b/public/tanchuang.png new file mode 100644 index 0000000..042d545 Binary files /dev/null and b/public/tanchuang.png differ diff --git a/public/wheel-base.png b/public/wheel-base.png new file mode 100644 index 0000000..a73dfc2 Binary files /dev/null and b/public/wheel-base.png differ diff --git a/public/wheel-base2.png b/public/wheel-base2.png new file mode 100644 index 0000000..78971cd Binary files /dev/null and b/public/wheel-base2.png differ diff --git a/src/assets/img/j.png b/src/assets/img/j.png new file mode 100644 index 0000000..9319127 Binary files /dev/null and b/src/assets/img/j.png differ diff --git a/src/assets/img/jiantou.png b/src/assets/img/jiantou.png new file mode 100644 index 0000000..9319127 Binary files /dev/null and b/src/assets/img/jiantou.png differ diff --git a/src/router/index.js b/src/router/index.js index 694d457..c4873eb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,12 +2,17 @@ import { createRouter, createWebHistory } from 'vue-router' const routes = [ { path: '/', - redirect: '/DZP' + redirect: '/DZP1' }, { - path: '/DZP', - name: 'DZP', - component: () => import('../views/DZP.vue') + path: '/DZP1', + name: 'DZP1', + component: () => import('../views/DZP1.vue') + }, + { + path: '/DZP2', + name: 'DZP2', + component: () => import('../views/DZP2.vue') }, ] // 创建路由实例 diff --git a/src/views/DZP.vue b/src/views/DZP.vue deleted file mode 100644 index 4d1d454..0000000 --- a/src/views/DZP.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - diff --git a/src/views/DZP1.vue b/src/views/DZP1.vue new file mode 100644 index 0000000..57640ec --- /dev/null +++ b/src/views/DZP1.vue @@ -0,0 +1,287 @@ + + + + + \ No newline at end of file diff --git a/src/views/DZP2.vue b/src/views/DZP2.vue new file mode 100644 index 0000000..ddc7806 --- /dev/null +++ b/src/views/DZP2.vue @@ -0,0 +1,216 @@ + + + + + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index bbcf80c..5f18f84 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,26 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' +import { resolve } from 'path' // -// https://vite.dev/config/ export default defineConfig({ - plugins: [vue()], + plugins: [vue()], // + server: { + host: '192.168.1.102', + port: 5173, + // 错误1:server 块内不能嵌套 plugins 配置(已删除) + proxy: { + '/api': { + target: 'http://192.168.99.223:3000', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api/, '') + } + } + }, + resolve: { // + alias: { + "/@": resolve(__dirname, "src"), // + } + }, + base: process.env.NODE_ENV === "production" ? "/dazhuanpan" : "/", + })