This commit is contained in:
weipengfei 2023-12-09 18:45:13 +08:00
parent 99a42d4757
commit fef405ed9c
2 changed files with 3 additions and 6 deletions

View File

@ -89,7 +89,7 @@ const loadOrderList = (pramas) => {
onMounted(() => { onMounted(() => {
// loadOrderList(); // loadOrderList();
mitt.on('showBusinesses2', (e) => { mitt.on('showBusinesses2', (e) => {
pages.type = e.type; pages.value.type = e.type;
isShow.value = !isShow.value; isShow.value = !isShow.value;
}) })
}) })

View File

@ -5,7 +5,6 @@ import AMap from "./AMap.vue";
import mitt from "@/utils/mitt"; import mitt from "@/utils/mitt";
import { useAppStore } from "@/store/app.js" import { useAppStore } from "@/store/app.js"
import { logisticsMapCount } from "@/api/index.js"; import { logisticsMapCount } from "@/api/index.js";
import Businesses2 from "@/components/Businesses2.vue";
const appStore = useAppStore(); const appStore = useAppStore();
@ -28,9 +27,8 @@ const initInfo = () => {
}) })
} }
const clickItem = () => { const clickItem = (type) => {
console.log('点击按钮'); mitt.emit('showBusinesses2', { type: type })
mitt.emit('showBusinesses2', { type: 1 })
} }
onMounted(() => { onMounted(() => {
@ -62,7 +60,6 @@ onMounted(() => {
</div> </div>
</div> </div>
</div> </div>
<Businesses2 :isShow="isShow"></Businesses2>
</div> </div>
</template> </template>