This commit is contained in:
helloDy
2024-01-11 10:35:52 +08:00
parent d25abf3b18
commit e1bb664c53
2 changed files with 24 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: Do not edit
* @Date: 2024-01-09 13:48:42
* @LastEditTime: 2024-01-10 17:56:00
* @LastEditTime: 2024-01-11 09:26:12
* @LastEditors: DY
* @Description:
-->
@@ -112,12 +112,16 @@ export default {
},
getLine () {
lineList().then(res => {
this.lineArray = res.data.data.map(item => {
return {
text: item.name,
value: item.id
}
})
if (res && res.data.data.length > 0) {
this.lineArray = res.data.data.map(item => {
return {
text: item.name,
value: item.id
}
})
} else {
this.lineArray = []
}
})
},
getSection () {