|
@@ -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)
|