修改bug

h5
ihzero 2023-08-04 15:12:36 +08:00
parent 5d8ea02811
commit a138db4ecf
4 changed files with 6 additions and 4 deletions

View File

@ -202,7 +202,7 @@ export const accountFormSchema: FormSchema[] = [
component: 'ApiSelect', component: 'ApiSelect',
componentProps: { componentProps: {
api: async () => { api: async () => {
const res = await getKeywords({ key: 'device-supplier' }) const res = await getKeywords({ type_key: 'device-supplier' })
return res return res
}, },
labelField: 'name', labelField: 'name',
@ -216,7 +216,7 @@ export const accountFormSchema: FormSchema[] = [
component: 'ApiSelect', component: 'ApiSelect',
componentProps: { componentProps: {
api: async () => { api: async () => {
const res = await getKeywords({ key: 'device-project' }) const res = await getKeywords({ type_key: 'device-project' })
return res return res
}, },
labelField: 'name', labelField: 'name',

View File

@ -1,11 +1,11 @@
<template> <template>
<Box title="气象数据"> <Box title="气象数据">
<template #center> <template #center>
<!-- <div <div
class="text-center bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] text-14px font-bold" class="text-center bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] text-14px font-bold"
> >
{{ currentTabValue }} {{ currentTabValue }}
</div> --> </div>
</template> </template>
<template #right> <template #right>
<div class="py-10px relative" v-if="tabList.length > 1"> <div class="py-10px relative" v-if="tabList.length > 1">

View File

@ -134,6 +134,7 @@
function onMenuClick({ key }) { function onMenuClick({ key }) {
if (Data.currentTab == key) return if (Data.currentTab == key) return
Data.currentTab = key Data.currentTab = key
getData()
} }
async function getTabs() { async function getTabs() {

View File

@ -134,6 +134,7 @@
function onMenuClick({ key }) { function onMenuClick({ key }) {
if (Data.currentTab == key) return if (Data.currentTab == key) return
Data.currentTab = key Data.currentTab = key
getData()
} }
async function getTabs() { async function getTabs() {