企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
dispatch:**异步**操作,数据提交至 actions ,可用于向后台提交数据 ~~~ this.$store.dispatch('isLogin', true); ~~~ commit:  **同步**操作,数据提交至 mutations ,可用于登录成功后读取用户信息写到缓存里 ~~~ this.$store.commit('loginStatus', 1); ~~~ 注:必须要用commit(‘SET\_TOKEN’, tokenV)调用mutations里的方法,才能在store存储成功。