摘要: 1、vuex创建全局变量在store/index中: import Vuex from 'vuex' Vue.use(Vuex) const user = { state: { // 全屏 fullscreen: false, }, mutations: { // 全屏 SET_FULLSCREEN 阅读全文
posted @ 2023-11-27 11:27 新恒 阅读(886) 评论(0) 推荐(0) 编辑