Commit b42b9c02 by pangchong

feat: 调整

parent 2c981718
...@@ -8,7 +8,7 @@ const useBaseStore = defineStore('base', { ...@@ -8,7 +8,7 @@ const useBaseStore = defineStore('base', {
deviceNumSelect: [], //机号 deviceNumSelect: [], //机号
terminalSelect: [] //航站下拉数据 terminalSelect: [] //航站下拉数据
}, },
allBasicParams: {} allBasicParams: {} //系统基础参数
} }
}, },
getters: { getters: {
......
...@@ -26,8 +26,8 @@ const baseStore = useBaseStore() ...@@ -26,8 +26,8 @@ const baseStore = useBaseStore()
const weatherInfo = ref() const weatherInfo = ref()
const findWeatherSynopsesMessages = async () => { const findWeatherSynopsesMessages = async () => {
const res = await findWeatherSynopsesMessagesApi({ airportCode: userStore.userInfo.terminal }) const res = await findWeatherSynopsesMessagesApi({ airportCode: userStore.userInfo.terminal })
if (res.code == 200) { if (res.code == 200 && res.data) {
weatherInfo.value = res.data?.at(-1) weatherInfo.value = res.data[res.data.length - 1]
uni.$emit('sendWeatherInfo', weatherInfo.value) uni.$emit('sendWeatherInfo', weatherInfo.value)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment