Browse Source

[edit] report bug

A\An 3 năm trước cách đây
mục cha
commit
22f3a41cc4
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 1 1
      src/logic/twitter.js
  2. 2 0
      src/view/popup/popup.vue

+ 1 - 1
src/logic/twitter.js

@@ -408,7 +408,7 @@ function _createBtnDom(port) {
     // 编辑框内按钮
     const deBtn1 = document.createElement('img');
     let src = require("@/assets/img/icon-gift-pack.png");
-    const smallDeBtnStyle = 'width:20px;height: 20px;cursor: pointer;marign-left:4px;margin-right:4px';
+    const smallDeBtnStyle = 'width:20px;height: 20px;cursor: pointer;padding: 0px 8px';
     deBtn1.id = 'de-btn1';
     deBtn1.style.cssText = smallDeBtnStyle;
     deBtn1.src = src

+ 2 - 0
src/view/popup/popup.vue

@@ -258,6 +258,8 @@ onMounted(() => {
             Report.reportLog({
                 pageSource: Report.pageSource.denetHomePage,
                 businessType: Report.businessType.pageView,
+            },{
+                type: window.location.href.indexOf('home.html') > -1 ? 'web' : 'extensions'
             });
         } else {
             Report.reportLog({