Commit 7c78942c by pangchong

feat: bug修复

parent 071137a7
......@@ -44,7 +44,6 @@ import { storeToRefs } from 'pinia'
import { cloneDeep } from 'lodash'
import useBaseStore from 'mocp/store/base'
import useFlightSupportStore from 'mocp/store/flight-support'
import { onUnload } from '@dcloudio/uni-app'
//获取下拉框选项
const baseStore = useBaseStore()
......@@ -70,9 +69,6 @@ const handleConfirm = () => {
uni.$mocpJump.navigateBack()
uni.$emit('screenReload')
}
onUnload(() => {
uni.$off('screenReload')
})
</script>
<style lang="scss" scoped>
.screen-form {
......
......@@ -63,7 +63,7 @@ import useFlightSupportStore from 'mocp/store/flight-support'
import { storeToRefs } from 'pinia'
import TableTow from './components/TableRow.vue'
import { finishedStatus } from 'mocp/utils/getFlightList'
import { onLoad } from '@dcloudio/uni-app'
import { onLoad, onUnload } from '@dcloudio/uni-app'
import { currentInBoundModeForFlightTablePage, allInBoundMode } from './utils/currentInBoundMode'
const paging = ref(null)
......@@ -132,6 +132,9 @@ uni.$on('screenReload', () => {
onLoad(() => {
flightSupportStore.setTerminal()
})
onUnload(() => {
uni.$off('screenReload')
})
</script>
<style scoped lang="scss">
......
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