zxlie 5 月之前
父节点
当前提交
4431b9ee8e
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 1 1
      apps/en-decode/index.html
  2. 4 1
      apps/en-decode/index.js

+ 1 - 1
apps/en-decode/index.html

@@ -17,7 +17,7 @@
                     <a href="https://www.baidufe.com/fehelper/index/index.html" target="_blank" class="x-a-high">
                         <img src="../static/img/fe-16.png" alt="fehelper"/> FeHelper</a>:信息编解码工具
                     <a href="#" class="x-donate-link" @click="openDonateModal($event)"><i class="nav-icon">❤&nbsp;</i>打赏鼓励</a>
-                    <a class="x-other-tools" @click="openOptionsPage()"><i class="icon-plus-circle"></i> 探索更多实用工具 <span class="tool-market-badge">工具市场</span></a>
+                    <a class="x-other-tools" @click="openOptionsPage($event)"><i class="icon-plus-circle"></i> 探索更多实用工具 <span class="tool-market-badge">工具市场</span></a>
                 </h3>
             </div>
         </div>

+ 4 - 1
apps/en-decode/index.js

@@ -121,12 +121,15 @@ new Vue({
             this.$refs.rstCode.select();
         },
 
-        openOptionsPage: function() {
+        openOptionsPage: function(event) {
+            event.preventDefault();
+            event.stopPropagation();
             chrome.runtime.openOptionsPage();
         },
 
         openDonateModal: function(event ){
             event.preventDefault();
+            event.stopPropagation();
             chrome.runtime.sendMessage({
                 type: 'fh-dynamic-any-thing',
                 thing: 'open-donate-modal',