vue-baidu-analytics/demo/static/js/home.80371ab3.js
2019-12-20 00:54:04 +08:00

2 lines
1.2 KiB
JavaScript

/*! The roject developed by chengpeiquan! */
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["home"],{5034:function(t,n,e){"use strict";var a=e("8922"),r=e.n(a);r.a},6511:function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"main"},[e("p",[t._v("导航会自动上报数据")]),e("nav",{staticClass:"nav"},t._l(t.navList,(function(n){return e("router-link",{staticClass:"item",attrs:{to:n.url,exact:""}},[t._v(t._s(n.text))])})),1),e("p",[t._v("按钮可手动上报数据")]),e("div",{staticClass:"buttons"},[e("button",{on:{click:function(n){return t.$trackBaiduPv("/test")}}},[t._v("手动上报PV")]),e("button",{on:{click:function(n){return t.$trackBaiduEvent("act_vote","click","works",1)}}},[t._v("手动上报分析事件")])])])},r=[],u={data:function(){return{navList:[{url:"/home",text:"首页"},{url:"/home?id=123456",text:"单个query"},{url:"/home?id=123456&name=张三&age=18",text:"多个query"},{url:"/user/123456",text:"带params"},{url:"/user/123456?id=123456",text:"带params和query"}]}}},s=u,i=(e("5034"),e("2877")),c=Object(i["a"])(s,a,r,!1,null,"0d96c593",null);n["default"]=c.exports},8922:function(t,n,e){}}]);