diff --git a/src/pages/repairOrder/index.vue b/src/pages/repairOrder/index.vue index 1eaa90e..6bf0fa1 100644 --- a/src/pages/repairOrder/index.vue +++ b/src/pages/repairOrder/index.vue @@ -66,7 +66,8 @@ } from '@dcloudio/uni-app' import { ref, - getCurrentInstance + getCurrentInstance, + nextTick } from 'vue' import * as repairOrderApi from "@/api/repairOrder.js" import { useCountStore } from '@/store' @@ -79,7 +80,7 @@ pageSize: 10, type: '', }) - const title = ref(); + const title = ref('维修工单'); const status = ref('loadmore') //是否显示没有更多了 const list = ref([]) function itemClick(item, index) { @@ -114,6 +115,9 @@ }else{ title.value = "维修工单" } + nextTick(() => { + // 重新渲染页面 + }); }) onShow(() => { params.value.pageNo = 1