This commit is contained in:
lyc 2024-09-11 16:04:36 +08:00
parent 40c6e1303b
commit 82bed1be03
2 changed files with 5 additions and 5 deletions

View File

@ -115,28 +115,28 @@ const outerAi = [
id: 1, id: 1,
title: '生成图片', title: '生成图片',
secondTit: '文生图大模型', secondTit: '文生图大模型',
img: '../../../src/assets/images/ai-01.png', img: new URL('../../../src/assets/images/ai-01.png', import.meta.url).href,
path: '/ais/aisd3' path: '/ais/aisd3'
}, },
{ {
id: 2, id: 2,
title: '教学大模型', title: '教学大模型',
secondTit: '中小学基础教学大模型', secondTit: '中小学基础教学大模型',
img: '../../../src/assets/images/ai-02.png', img: new URL('../../../src/assets/images/ai-02.png', import.meta.url).href,
disabled: true, disabled: true,
}, },
{ {
id: 3, id: 3,
title: '育人大模型', title: '育人大模型',
secondTit: '全场域育人大模型', secondTit: '全场域育人大模型',
img: '../../../src/assets/images/ai-03.png', img: new URL('../../../src/assets/images/ai-03.png', import.meta.url).href,
path: '/ais/aimodel' path: '/ais/aimodel'
}, },
{ {
id: 4, id: 4,
title: 'ChatTTS', title: 'ChatTTS',
secondTit: '文字转语音大模型', secondTit: '文字转语音大模型',
img: '../../../src/assets/images/ai-04.png', img: new URL('../../../src/assets/images/ai-04.png', import.meta.url).href,
path: '/ais/aiChatTTS' path: '/ais/aiChatTTS'
} }
] ]

View File

@ -73,7 +73,6 @@ import outLink from '@/utils/linkConfig'
import logoIco from '@/assets/images/logo.png' import logoIco from '@/assets/images/logo.png'
import { listEvaluation } from '@/api/classManage/index' import { listEvaluation } from '@/api/classManage/index'
const { ipcRenderer } = window.electron || {} const { ipcRenderer } = window.electron || {}
const userStore = useUserStore() const userStore = useUserStore()
const router = useRouter() const router = useRouter()
@ -208,6 +207,7 @@ const changeSubject = async (command) =>{
// //
const getAllSubject = async () => { const getAllSubject = async () => {
const { rows } = await listEvaluation({ itemkey: "subject", pageSize: 500 }) const { rows } = await listEvaluation({ itemkey: "subject", pageSize: 500 })
if(!userStore.user.subject) return
const subject = userStore.user.subject.split(',') const subject = userStore.user.subject.split(',')
userSubjectList.value = rows.filter(item => userSubjectList.value = rows.filter(item =>
subject.some(el => item.id == el) subject.some(el => item.id == el)