随笔分类 -  vue

摘要:toggleScreen() { if(this.screen){ //判断全屏状态 this.$refs.components_layout_side.$el.requestFullscreen() }else{ //退出全屏的时候,对象是document if (document.exitFul 阅读全文
posted @ 2023-03-25 17:33 RLflash 阅读(75) 评论(0) 推荐(0)
摘要://阅读本文需要一点vuex的基本知识 commit => mutation //用来触发同步操作的方法 dispatch=>action //用来触发异步操作的方法 如果想改变vuex的store 中的状态的唯一方法是提交(commit) mutation,如果想在action中改变store中的 阅读全文
posted @ 2018-01-24 12:27 RLflash 阅读(213) 评论(0) 推荐(0)