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)