seimin il y a 1 an
Parent
commit
546d519296
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      pages/search/search.vue

+ 2 - 2
pages/search/search.vue

@@ -277,9 +277,9 @@
277 277
           //定义高亮#9f9f9f
278 278
           var html = row.dept.replace(
279 279
             keyword,
280
-            "<span style='color: #9f9f9f;'>" + keyword + (row.sign == 'qr' ? '('+ row.name +')' : '') + "</span>" + (row.sign == 'qr' ? '<span class="red">(配置)</span>' : '')
280
+            "<span style='color: #9f9f9f;'>" + keyword + "</span>"
281 281
           );
282
-          html = "<div>" + html + "</div>";
282
+          html = "<div>" + html + (row.sign == 'qr' ? '('+ row.name +')' : '') + (row.sign == 'qr' ? '<span class="red">(配置)</span>' : '') + "</div>";
283 283
           var tmpObj = {
284 284
             id: row.id,
285 285
             qrId: row.qrId,