开发服务器端口外置,解决编译报错

Signed-off-by: 杨宇庆 <hiyyq@qq.com>
This commit is contained in:
杨宇庆
2024-12-09 00:51:33 +00:00
committed by Gitee
parent 2dc8da714c
commit 1d1efb69e9
2 changed files with 2 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ const props = defineProps({
default: false
},
chartStyles: {
type: Object as PropType<Omit<PickCreateComponentType<'styles'>, 'animations' | 'animationsOpen' | 'animationsCirculate' | 'animationsCurve' | 'animationsDirection' | 'circulatePlayTime' | 'circulateDelayTime'>>,
type: Object,
required: true
}
})

View File

@@ -47,7 +47,7 @@ export default ({ mode }) => defineConfig({
server: {
host: true,
open: true,
port: 3000,
port: Number(loadEnv(mode, process.cwd()).VITE_DEV_PORT),
proxy: {
[axiosPre]: {
// @ts-ignore