Commit b42b9c02 by pangchong

feat: 调整

parent 2c981718
......@@ -8,7 +8,7 @@ const useBaseStore = defineStore('base', {
deviceNumSelect: [], //机号
terminalSelect: [] //航站下拉数据
},
allBasicParams: {}
allBasicParams: {} //系统基础参数
}
},
getters: {
......
......@@ -26,8 +26,8 @@ const baseStore = useBaseStore()
const weatherInfo = ref()
const findWeatherSynopsesMessages = async () => {
const res = await findWeatherSynopsesMessagesApi({ airportCode: userStore.userInfo.terminal })
if (res.code == 200) {
weatherInfo.value = res.data?.at(-1)
if (res.code == 200 && res.data) {
weatherInfo.value = res.data[res.data.length - 1]
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