From c7f1e985842a43449ce6f57fe03e9f8cb84fcaa5 Mon Sep 17 00:00:00 2001 From: "949036910@qq.com" <> Date: Wed, 27 May 2026 22:48:06 +0800 Subject: [PATCH] 1 --- vite.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite.config.js b/vite.config.js index 8b89a52..17e482c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -11,7 +11,11 @@ const monacoEditorPlugin = const host = process.env.TAURI_DEV_HOST; export default defineConfig({ + base: process.env.NODE_ENV === 'production' ? '/images/newyaoyan/index.html' : '/', plugins: [monacoEditorPlugin({}), vue(), tailwindcss()], + build: { + outDir: '/root/yaoyan/yaoyan_admin/images/newyaoyan', + }, clearScreen: false, server: { port: 1420,