// 定义全局点击函数
Vue.prototype.globalClick = function (callback) {
    document.getElementById('main').onclick = function () {
        callback();
    };
};

 

mounted: function () {
    this.globalClick(this.moreSetupMenuRemove);
}

  

// 移除操作
moreSetupMenuRemove () {
    this.$refs.moreSetupMenu.style.display = 'none';
},

  

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2021-04-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
相关资源
相似解决方案