|
@@ -62,19 +62,19 @@ import {
|
|
|
function getCurrentUserSuccess(res){
|
|
|
|
|
|
}
|
|
|
-var _hmt = _hmt || [];
|
|
|
-(function() {
|
|
|
- var hm = document.createElement("script");
|
|
|
- hm.src = "https://hm.baidu.com/hm.js?0e3bd98236bd62558926fc433751d60c";
|
|
|
- var s = document.getElementsByTagName("script")[0];
|
|
|
- s.parentNode.insertBefore(hm, s);
|
|
|
-})();
|
|
|
+// var _hmt = _hmt || [];
|
|
|
+// (function() {
|
|
|
+// var hm = document.createElement("script");
|
|
|
+// hm.src = "https://hm.baidu.com/hm.js?0e3bd98236bd62558926fc433751d60c";
|
|
|
+// var s = document.getElementsByTagName("script")[0];
|
|
|
+// s.parentNode.insertBefore(hm, s);
|
|
|
+// })();
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
- if (_hmt) {
|
|
|
- if (to.path) {
|
|
|
- _hmt.push(['_trackPageview', '/#' + to.fullPath]);
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (_hmt) {
|
|
|
+ // if (to.path) {
|
|
|
+ // _hmt.push(['_trackPageview', '/#' + to.fullPath]);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
const urls = getAuthUrls()
|
|
|
if (storageGet('user') == null) {
|
|
|
getCurrentUser().then((res) => {
|