|
@@ -110,7 +110,11 @@ export default defineComponent({
|
|
state.platform === IPlatform.PC && getSubjectList() // 老师端才加载乐器
|
|
state.platform === IPlatform.PC && getSubjectList() // 老师端才加载乐器
|
|
const subjectList = ref<any[]>([])
|
|
const subjectList = ref<any[]>([])
|
|
function getSubjectList(){
|
|
function getSubjectList(){
|
|
- api_subjectList({}).then(res => {
|
|
|
|
|
|
+ api_subjectList({
|
|
|
|
+ delFlag: 0,
|
|
|
|
+ page: 1,
|
|
|
|
+ rows: 999,
|
|
|
|
+ }).then(res => {
|
|
if(res.code === 200){
|
|
if(res.code === 200){
|
|
subjectList.value = [...res.data.map((item:any)=>{
|
|
subjectList.value = [...res.data.map((item:any)=>{
|
|
return item.instruments.length > 1 ? Object.assign(item,{ isExpand: ref(false) }) : item
|
|
return item.instruments.length > 1 ? Object.assign(item,{ isExpand: ref(false) }) : item
|