Browse Source

刷新重新加载数据

lifanagju_citu 8 months ago
parent
commit
286a49068e
2 changed files with 2 additions and 1 deletions
  1. 1 1
      components/PositionList/index.vue
  2. 1 0
      pages/index/position.vue

+ 1 - 1
components/PositionList/index.vue

@@ -3,7 +3,7 @@
     <view v-for="(item, index) in list" @click="toDetail(item)" :key="index" class="list-shape">
         <!-- 职位+热度 -->
         <view class="mar">
-          <span style="font-size: 16px;font-weight: 700;color: black;">{{item.enterpriseRecruit.enterpriseRecruitJobName + (index+1)}}</span>
+          <span style="font-size: 16px;font-weight: 700;color: black;">{{item.enterpriseRecruit.enterpriseRecruitJobName}}</span>
           <span class="mar" v-if="item.enterpriseRecruit.hot">
             <uni-icons type="fire-filled" size="25" color="#ff770d"></uni-icons>
           </span>

+ 1 - 0
pages/index/position.vue

@@ -54,6 +54,7 @@ getData()
 
 const onSearch = (name) => {
   page.pageNo = 1
+  positionListData.value = []
   getData(name)
 }