From 35b332f64082327a5884b37d89e14f209bb0422f Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Thu, 12 Jun 2025 10:03:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(ProjectAttachment):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- vite.config.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1d54771..4cdf617 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: - name: build-package - image: node:16.20.0 + image: node:18 volumes: - name: cache path: /drone/src/node_modules diff --git a/vite.config.js b/vite.config.js index fcfcb8f..fdaeef8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -9,11 +9,12 @@ import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' import Inspect from 'vite-plugin-inspect' import viteSvgIcons from 'vite-plugin-svg-icons' +import {detect} from 'package-manager-detector/dist/detect.mjs' import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [ - vue(), + vue(),detect, vueJsx(), AutoImport({ //自动导入vue相关函数 @@ -83,8 +84,8 @@ export default defineConfig({ // rewrite: (path) => path.replace(/^\/api/, '') // }, // '/api/auth': { - // // target: 'http://frp.feashow.cn:31800/', - // target: 'http://clay.frp.feashow.cn/', + // target: 'http://frp.feashow.cn:31800/', + // // target: 'http://clay.frp.feashow.cn/', // // target: 'http://192.168.31.175:8000', // changeOrigin: true, // rewrite: (path) => path.replace(/^\/api/, '')