From ce00a46869b282f4d4802eb0680e0e0339cb60a8 Mon Sep 17 00:00:00 2001 From: huweihang Date: Tue, 23 Dec 2025 18:01:18 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=E4=BF=AE=E6=94=B9AI=E6=9D=83=E9=99=90?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/ManageListRemote.vue | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/views/course/ManageListRemote.vue b/src/views/course/ManageListRemote.vue index e6aaf068..c3e5f28d 100644 --- a/src/views/course/ManageListRemote.vue +++ b/src/views/course/ManageListRemote.vue @@ -2259,15 +2259,13 @@ export default { }, getAiPermission() { apiCourse.listByUser({}).then(res => { - if (res && res.code === 200 && Array.isArray(res.data)) { - const index = res.data.findIndex(item => item.permissionCode === 'KjbAiSetCode'); + console.log('res', res); + if(res.code === 200){ + let index = res.data.findIndex(item => item.permissionCode === 'KjbAiSetCode'); this.aiPermission = index !== -1; - } else { - this.aiPermission = false; + console.log('index', index, this.aiPermission); } - }).catch(() => { - this.aiPermission = false; - }); + }) } } }; @@ -2669,12 +2667,6 @@ export default { color: #000000; } -.action-buttons { - display: flex; - gap: 10px; - margin-left: auto; -} - .tips { color: #f56c6c; font-size: 12px;