Forráskód Böngészése

[Hotfix] need revert3

AA 11 hónapja
szülő
commit
9658acbf28
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/utils/log.js

+ 1 - 1
src/utils/log.js

@@ -5,7 +5,7 @@ import { addLog } from '@/api/log'
 export function jumpTo(type, id, name, url) {
   if (url && url.indexOf('{USER_IDCARD}') > -1) {
     const esouUrl = this.$store.getters.links.esouUrl
-    const encryptIdCard = esouUrl.substring(esouUrl.indexOf('idcard=') + 7, esouUrl.indexOf('&query'))
+    const encryptIdCard = esouUrl.substr(esouUrl.lastIndexOf('?idcard=') + 8)
     url = url.replace('{USER_IDCARD}', encryptIdCard)
   }
   addLog(type, id, name, url).then(res => {