Przeglądaj źródła

fix: 用原生 button @click 替换 el-button 绕过组件事件问题

el-button 组件点击事件无法触发,改用原生 button @click 保持相同效果
iwt 2 miesięcy temu
rodzic
commit
93383262a5
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      cfc-web/src/views/Dashboard.vue

+ 1 - 2
cfc-web/src/views/Dashboard.vue

@@ -189,8 +189,7 @@
       <div class="health-label">系统版本</div>
       <div class="health-value">
         {{ version }}
-        <button type="button" onclick="alert('原生按钮点击')" style="font-size:12px;border:none;background:none;color:#409EFF;cursor:pointer;text-decoration:none;padding:0;margin-left:6px">原生测试</button>
-        <el-button type="text" style="font-size:12px;margin-left:6px;padding:0" @click="changelogVisible = true">查看变更日志</el-button>
+        <button type="button" style="font-size:12px;border:none;background:none;color:#409EFF;cursor:pointer;padding:0;margin-left:6px" @click="changelogVisible = true">查看变更日志</button>
       </div>
     </div>
   </div>