Procházet zdrojové kódy

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

Signed-off-by: 杨宇庆 <hiyyq@qq.com>
杨宇庆 před 11 měsíci
rodič
revize
1d1efb69e9

+ 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