فهرست منبع

加上时间戳,用于前端刷新路由参数。

lifanagju_citu 3 ماه پیش
والد
کامیت
27007ebd3e
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/views/recruit/personal/company/index.vue

+ 2 - 0
src/views/recruit/personal/company/index.vue

@@ -54,6 +54,7 @@ const pages = ref({
 const query = ref({})
 
 const dealRouteQuery = (data) => {
+  data.date = new Date().getTime() // 用于前端刷新路由参数
   const arr = Object.keys(data).map(e => {
     if (data[e]) {
       return Array.isArray(data[e]) ? `${e}=${data[e].join('_')}` : `${e}=${data[e]}`
@@ -93,6 +94,7 @@ const inputChange = async({ idName: key, values }) => { // areaIds
 const noParams = ref(true)
 const getCompanyData = async () => {
   noParams.value = true
+  if (query.value?.date) delete query.value.date
   Object.keys(query.value).forEach(key => {
     // 没有筛选条件不请求数据
     if (query.value[key]) noParams.value = false