|
@@ -46,14 +46,14 @@ export default {
|
|
|
// },
|
|
|
initOmegaTracker() {
|
|
|
try {
|
|
|
- window.log = function ({ c: master_func, d: detail_func }) {
|
|
|
+ window.log = ({ c: master_func, d: detail_func }) => {
|
|
|
const { log } = console
|
|
|
log({ master_func, detail_func }, '埋点成功!')
|
|
|
}
|
|
|
if (envTag === 'online') {
|
|
|
const tracker = OmegaTracker.getTracker({ appKey: 'omega6b172861f4' })
|
|
|
const _this = this
|
|
|
- window.log = function ({ c: master_func, d: detail_func }) {
|
|
|
+ window.log = ({ c: master_func, d: detail_func }) => {
|
|
|
const userName = localStorage.getItem('username')
|
|
|
const { bizId = null } = _this.$store.state.global || {}
|
|
|
tracker.trackEvent('phpublic_zhihui_project_management_ck', {
|