下拉框

This commit is contained in:
2025-08-12 16:35:53 +08:00
parent f523a450e7
commit e20be6e6aa
2 changed files with 8 additions and 8 deletions

View File

@@ -34,7 +34,7 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import {regionList, vehicleInConfirm} from '@/utils/getData4.js' import {getSect, vehicleInConfirm} from '@/utils/getData4.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -53,12 +53,12 @@
this.title = options.title this.title = options.title
}, },
created () { created () {
this._regionList() this._getSect()
}, },
methods: { methods: {
async _regionList () { async _getSect () {
try { try {
let res = await regionList() let res = await getSect()
if (res) { if (res) {
this.options = res.data this.options = res.data
} else { } else {

View File

@@ -34,7 +34,7 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import {regionList, iosOutvehicleOutConfirm} from '@/utils/getData4.js' import {getSect, iosOutvehicleOutConfirm} from '@/utils/getData4.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -53,12 +53,12 @@
this.title = options.title this.title = options.title
}, },
created () { created () {
this._regionList() this._getSect()
}, },
methods: { methods: {
async _regionList () { async _getSect () {
try { try {
let res = await regionList() let res = await getSect()
if (res) { if (res) {
this.options = res.data this.options = res.data
} else { } else {