安装的子应用、子模块也注入 */ //兼容一下这个模式 if(!isset($_component_params['1b1a8af3b389400e']['port'])){ $_component_params['1b1a8af3b389400e']['port'] = '5173'; } if(isset($_component_params['1b1a8af3b389400e']['ip'])){ $_vite_client_url = 'http://'.$_component_params['1b1a8af3b389400e']['ip'].(isset($_component_params['1b1a8af3b389400e']['port'])?':'.$_component_params['1b1a8af3b389400e']['port']:''); }else{ $_vite_client_url = ''; } //开发主机地址 if(isset($_component_params['1b1a8af3b389400e']['dev_host'])){ $_dev_host = $_component_params['1b1a8af3b389400e']['dev_host']; }else{ $_dev_host = $_vite_client_url?:''; } //打包输出主机地址 if(isset($_component_params['1b1a8af3b389400e']['prod_host'])){ $_prod_host = $_component_params['1b1a8af3b389400e']['prod_host']; }else{ $_prod_host = ''; } if(isset($_component_params['1b1a8af3b389400e']['dist_prefix'])){ $_dist_prefix = $_component_params['1b1a8af3b389400e']['dist_prefix']; }else{ $_dist_prefix = ''; } if(isset($_component_params['1b1a8af3b389400e']['manifest_path'])){ $_manifest_path = $_component_params['1b1a8af3b389400e']['manifest_path']; }else{ $_manifest_path = ''; } \Ssm\App\ViteConnector::getInstance($_manifest_path, $_dist_prefix, $_dev_host,$_prod_host) ->outputViteResource($_component_params['1b1a8af3b389400e']['module']); ?>
广告
最新文章
广告
热门文章
推荐专题
热门报告