vite 二级目录 nginx部署

1、router配置

const router = createRouter({
		history: createWebHistory('/taskManage/'),
		routes: autoLoadRoutes
	})

2、vite.config.js配置

base: '/taskManage',

3、nginx配置

vite 二级目录 nginx部署_第1张图片

你可能感兴趣的:(前端,javascript,开发语言)