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