Commit 526af74e by Tianqing Liu

feat: 优化请求地址前缀

1 parent ce60674a
......@@ -20,9 +20,10 @@ const routes = [
},
];
const isDev = process.env.NODE_ENV === "development";
// const isDev = process.env.NODE_ENV === "development";
const router = createRouter({
history: createWebHistory(!isDev ? "/appH5/" : ""),
// history: createWebHistory(!isDev ? "/apph5/" : ""),
history: createWebHistory('/apph5/'),
routes,
});
......
......@@ -16,7 +16,7 @@ const loder_pxtovw = pxtovw({
import path from "path";
import copy from "rollup-plugin-copy";
export default defineConfig({
base: "/appH5/",
base: "/apph5/",
publicDir: "public",
server: {
host: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!