From f74909bc6c77b17b8792bf30f2651ddaa33ab8ff Mon Sep 17 00:00:00 2001 From: "BOE\\10867418" Date: Thu, 17 Aug 2023 15:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/Learningpathmap.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/report/Learningpathmap.vue b/src/views/report/Learningpathmap.vue index 2a494b57..e239a7e8 100644 --- a/src/views/report/Learningpathmap.vue +++ b/src/views/report/Learningpathmap.vue @@ -133,10 +133,11 @@ import downLoad from "../../utils/downLoad"; import Cookies from "vue-cookies"; import axios from "axios"; import dayjs from "dayjs"; -import store from '@/store'; +import { useStore } from "vuex"; export default { name: "LearningPathMap", setup() { + const store = useStore(); const state = reactive({ tableLoading: false, // table加载图标 tableDataTotal: 0, // 数据总条数 @@ -173,8 +174,8 @@ export default { //请求组织接口 const getOrgList = async () => { let params = { - roleList: store.userInfo.roleList, - userId: store.userInfo.userId + roleList: store.state.userInfo.roleList, + userId: store.state.userInfo.userId } const res = await api.userGetUserOrg({params}); if (res) {