Merge pull request '图片' (#195) from lyc-dev into main

This commit is contained in:
lyc 2024-09-11 16:05:04 +08:00
commit 54266f8a37
2 changed files with 5 additions and 5 deletions

View File

@ -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'
}
]

View File

@ -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)