This commit is contained in:
parent
99a42d4757
commit
fef405ed9c
|
@ -89,7 +89,7 @@ const loadOrderList = (pramas) => {
|
|||
onMounted(() => {
|
||||
// loadOrderList();
|
||||
mitt.on('showBusinesses2', (e) => {
|
||||
pages.type = e.type;
|
||||
pages.value.type = e.type;
|
||||
isShow.value = !isShow.value;
|
||||
})
|
||||
})
|
||||
|
|
|
@ -5,7 +5,6 @@ import AMap from "./AMap.vue";
|
|||
import mitt from "@/utils/mitt";
|
||||
import { useAppStore } from "@/store/app.js"
|
||||
import { logisticsMapCount } from "@/api/index.js";
|
||||
import Businesses2 from "@/components/Businesses2.vue";
|
||||
|
||||
const appStore = useAppStore();
|
||||
|
||||
|
@ -28,9 +27,8 @@ const initInfo = () => {
|
|||
})
|
||||
}
|
||||
|
||||
const clickItem = () => {
|
||||
console.log('点击按钮');
|
||||
mitt.emit('showBusinesses2', { type: 1 })
|
||||
const clickItem = (type) => {
|
||||
mitt.emit('showBusinesses2', { type: type })
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
@ -62,7 +60,6 @@ onMounted(() => {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Businesses2 :isShow="isShow"></Businesses2>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue