Ver Fonte

!5 开发服务器端口外置,解决编译报错
Merge pull request !5 from 杨宇庆/N/A

芋道源码 há 10 meses atrás
pai
commit
418a827faa

+ 1 - 1
src/components/Pages/ChartItemSetting/StylesSetting.vue

@@ -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
   }
 })

+ 1 - 1
vite.config.ts

@@ -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