From 82bed1be03c0c836d6778fc3407b9c0b237d0846 Mon Sep 17 00:00:00 2001 From: lyc Date: Wed, 11 Sep 2024 16:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/components/ai-chart/index.vue | 8 ++++---- src/renderer/src/layout/components/Header.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/components/ai-chart/index.vue b/src/renderer/src/components/ai-chart/index.vue index 2bfdbcc..95cfaa6 100644 --- a/src/renderer/src/components/ai-chart/index.vue +++ b/src/renderer/src/components/ai-chart/index.vue @@ -115,28 +115,28 @@ const outerAi = [ id: 1, title: '生成图片', secondTit: '文生图大模型', - img: '../../../src/assets/images/ai-01.png', + img: new URL('../../../src/assets/images/ai-01.png', import.meta.url).href, path: '/ais/aisd3' }, { id: 2, title: '教学大模型', secondTit: '中小学基础教学大模型', - img: '../../../src/assets/images/ai-02.png', + img: new URL('../../../src/assets/images/ai-02.png', import.meta.url).href, disabled: true, }, { id: 3, title: '育人大模型', secondTit: '全场域育人大模型', - img: '../../../src/assets/images/ai-03.png', + img: new URL('../../../src/assets/images/ai-03.png', import.meta.url).href, path: '/ais/aimodel' }, { id: 4, title: 'ChatTTS', secondTit: '文字转语音大模型', - img: '../../../src/assets/images/ai-04.png', + img: new URL('../../../src/assets/images/ai-04.png', import.meta.url).href, path: '/ais/aiChatTTS' } ] diff --git a/src/renderer/src/layout/components/Header.vue b/src/renderer/src/layout/components/Header.vue index 3bc34e4..a8849e0 100644 --- a/src/renderer/src/layout/components/Header.vue +++ b/src/renderer/src/layout/components/Header.vue @@ -73,7 +73,6 @@ import outLink from '@/utils/linkConfig' import logoIco from '@/assets/images/logo.png' import { listEvaluation } from '@/api/classManage/index' - const { ipcRenderer } = window.electron || {} const userStore = useUserStore() const router = useRouter() @@ -208,6 +207,7 @@ const changeSubject = async (command) =>{ // 获取学科 const getAllSubject = async () => { const { rows } = await listEvaluation({ itemkey: "subject", pageSize: 500 }) + if(!userStore.user.subject) return const subject = userStore.user.subject.split(',') userSubjectList.value = rows.filter(item => subject.some(el => item.id == el) -- 2.44.0.windows.1