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> <style lang="scss" scoped>
.main_button { .main_button {
color: $color-text-1; color: $color-text-1;
cursor: pointer;
} }
.route_button { .route_button {
color: $color-text-2; color: $color-text-2;
cursor: pointer;
&:hover { &:hover {
color: $color-primary; color: $color-primary;
} }

View File

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