request
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user