// 定义全局点击函数 Vue.prototype.globalClick = function (callback) { document.getElementById(‘main‘).onclick = function () { callback(); }; };
mounted: function () { this.globalClick(this.moreSetupMenuRemove); }
// 移除操作 moreSetupMenuRemove () { this.$refs.moreSetupMenu.style.display = ‘none‘; },
原文地址:https://www.cnblogs.com/wqing/p/10129021.html
时间: 2024-11-02 20:23:19