feat: vite server配置

This commit is contained in:
wf 2024-04-24 13:02:25 +08:00
parent deb7b58ba7
commit 728d0a82de
4 changed files with 228 additions and 221 deletions

View File

@ -47,9 +47,11 @@ const onBreadcrumb = (route: RouteLocationMatched) => {
<style lang="scss" scoped>
.main_button {
color: $color-text-1;
cursor: pointer;
}
.route_button {
color: $color-text-2;
cursor: pointer;
&:hover {
color: $color-primary;
}

View File

@ -19,6 +19,11 @@ export default defineConfig(({ mode }) => {
return {
// 开发或生产环境服务的公共基础路径
base: env.VITE_PUBLIC_PATH,
server: {
host: "0.0.0.0",
open: true,
proxy: {}
},
plugins: [
vue(),
vitePluginForArco({