Vue uses orderBy to report an error "ReferenceError: _ is not defined"

problem description

vue uses orderBy to report an error "ReferenceError: _ is not defined"

.png

orderBy

.png
but the console reported an error as shown in figure 1

related codes

// html
<el-step :title="item.customStatusName" :description="item.customStatusName" v-for="(item, index) in orderedSteps" v-bind:key="index">
  <i class="step step02" slot="icon" v-if="item.complete === true"></i>
  <i class="step step03" slot="icon" v-else></i>
</el-step>

// js
 computed: {
    orderedSteps: function () {  // 
      return _.orderBy(this.views, "squ")
    }
  },
Jan.22,2022
Menu