Huanyi 2 сар өмнө
parent
commit
edc58ff7c6
1 өөрчлөгдсөн 6 нэмэгдсэн , 1 устгасан
  1. 6 1
      vite.config.ts

+ 6 - 1
vite.config.ts

@@ -19,7 +19,12 @@ export default defineConfig(({ mode, command }) => {
     // https://cn.vitejs.dev/config/#resolve-extensions
     plugins: createPlugins(env, command === 'build'),
     server: {
-      allowedHosts: ['yp1.yingpaipay.com'],
+      allowedHosts: [
+        // 穿透使用
+        'yp1.yingpaipay.com',
+        // 不同角色不同二级域名实现多角色登录
+        'admin.daoxiuyuan.cn', 'pm.daoxiuyuan.cn', 'cta.daoxiuyuan.cn', 'cia.daoxiuyuan.cn'
+      ],
       host: '0.0.0.0',
       port: Number(env.VITE_APP_PORT),
       open: false,