* [task#126404] add question index of thinkstepmenu and thinkstepbase.

This commit is contained in:
Zhangyu
2024-08-21 08:43:46 +08:00
committed by 刘刚
parent 14f068f4ab
commit 0a09d52b26
+1 -1
View File
@@ -53,7 +53,7 @@ class thinkStepMenu extends wg
$unClickable = $toggleNonNodeShow && $setting->id != $activeKey && $setting->type != 'node' && json_decode($setting->answer) == null;
$item = array(
'key' => $setting->id,
'text' => $setting->title,
'text' => (isset($setting->index) ? ($setting->index . '. ') : '') . $setting->title,
'hint' => $unClickable ? $this->lang->thinkrun->error->unanswered :$setting->title,
'url' => $unClickable || !$canView ? '' : $setting->url,
'data-id' => $setting->id,