From 98dac11ece9c262b24376a3ff1227731b0ff96fd Mon Sep 17 00:00:00 2001 From: hsueh chiahao Date: Thu, 25 Sep 2025 17:40:35 +0800 Subject: [PATCH] fix path --- products/react-apps/alisurvey/README.md | 2 +- products/react-apps/alisurvey/src/main.tsx | 2 +- products/react-apps/alisurvey/vite.config.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/products/react-apps/alisurvey/README.md b/products/react-apps/alisurvey/README.md index c449054..03673cd 100644 --- a/products/react-apps/alisurvey/README.md +++ b/products/react-apps/alisurvey/README.md @@ -22,4 +22,4 @@ npm install npm run dev ``` -- 在浏览器访问 http://localhost:3000 +- 在浏览器访问 http://localhost:3000/alisurvey diff --git a/products/react-apps/alisurvey/src/main.tsx b/products/react-apps/alisurvey/src/main.tsx index f552135..02cfda4 100644 --- a/products/react-apps/alisurvey/src/main.tsx +++ b/products/react-apps/alisurvey/src/main.tsx @@ -7,7 +7,7 @@ import "./index.css"; createRoot(document.getElementById("root")!).render( - + diff --git a/products/react-apps/alisurvey/vite.config.ts b/products/react-apps/alisurvey/vite.config.ts index 23957f0..dcb1d23 100644 --- a/products/react-apps/alisurvey/vite.config.ts +++ b/products/react-apps/alisurvey/vite.config.ts @@ -12,5 +12,6 @@ function getPlugins() { } export default defineConfig({ - plugins: getPlugins() + plugins: getPlugins(), + base: '/alisurvey', });