log-lottery icon indicating copy to clipboard operation
log-lottery copied to clipboard

打包后打开html后页面空白并报错

Open dengzhigang opened this issue 1 year ago • 4 comments

123

本地运行正常,打包后直接打开就是空白的,并报上图错误,修改vite.config文件中的base配置为''也不行,是不是只能在服务端运行?

dengzhigang avatar Dec 22 '24 01:12 dengzhigang

进入dist目录使用npm或pnpm run preview,使用http-server也可以

wqzai avatar Dec 22 '24 02:12 wqzai

进入dist目录使用npm或pnpm run preview,使用http-server也可以

非常感谢,已解决。

dengzhigang avatar Dec 22 '24 12:12 dengzhigang

进入dist目录使用npm或pnpm run preview,使用http-server也可以

咋弄啊

liuzhiyuanvictor avatar Mar 04 '25 01:03 liuzhiyuanvictor

进入dist目录使用npm或pnpm run preview,使用http-server也可以

非常感谢,已解决。

咋弄啊

liuzhiyuanvictor avatar Mar 04 '25 01:03 liuzhiyuanvictor