Browse Source

[Hotfix] need revert

AA 11 tháng trước cách đây
mục cha
commit
dc49c772df
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/utils/log.js

+ 3 - 0
src/utils/log.js

@@ -3,6 +3,9 @@ import { Message } from 'element-ui'
 import { addLog } from '@/api/log'
 
 export function jumpTo(type, id, name, url) {
+  if (url && url.indexOf('{USER_IDCARD}') > -1) {
+    url = url.replace('{USER_IDCARD}', this.$store.getters.idCard)
+  }
   addLog(type, id, name, url).then(res => {
   }).catch(error => {
     console.log(error)