* Code for change arr to navTypes

This commit is contained in:
guofeilong
2023-02-16 16:48:15 +08:00
parent f66dadec57
commit 0e840ae40f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ $config->dev->postParams['testcase']['create']['expect'] = 'string';
$config->dev->postParams['testcase']['create']['mailto'] = 'string';
$config->dev->postParams['testcase']['create']['keywords'] = 'string';
$config->dev->arrTypesWithMenu = array('second', 'third', 'feature');
$config->dev->navTypes = array('second', 'third', 'feature');
$config->disableFeature = array();
if(!helper::hasFeature('waterfall')) $config->disableFeature = array('design', 'stage', 'programplan', 'weekly', 'researchplan', 'researchreport', 'gapanalysis');
+1 -1
View File
@@ -44,7 +44,7 @@ $(function()
function initMenu()
{
if (arrTypesWithMenu.includes(type))
if (navTypes.includes(type))
{
var myTreeData = [{
title: '水果',
+2 -2
View File
@@ -11,7 +11,7 @@
*/
?>
<?php js::set('type', $type); ?>
<?php js::set('arrTypesWithMenu', $config->dev->arrTypesWithMenu); ?>
<?php js::set('navTypes', $config->dev->navTypes); ?>
<?php include 'header.html.php';?>
<div id='mainMenu' class='clearfix'>
<div class="btn-toolBar pull-left">
@@ -23,7 +23,7 @@
</div>
</div>
<div class="flex gap-15">
<?php if(in_array($type, $config->dev->arrTypesWithMenu , false)):?>
<?php if(in_array($type, $config->dev->navTypes , false)):?>
<div class="menu-tree">
<div class="input-control search-box has-icon-left has-icon-right search-example">
<input type="search" class="form-control search-input" />