gaosp
2024-02-03 4145f51803841d33fa68673f2b6aa6e451bf9461
src/container/preview/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-01-05 22:26:22
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-31 21:47:40
 * @LastEditTime: 2024-02-02 23:32:35
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/preview/index.vue
-->
<template>
@@ -111,9 +111,6 @@
            getMapList() {
                try {
                    this.mapList = this.workshopList.filter (v => v.gridSetting && v.gridSetting!='{}')
                    if (this.mapList.length === 0) {
                        this.status = 2
                    }
                    this.id =this.mapList[0].id
                } catch (error) {
                    console.error(error)
@@ -121,7 +118,9 @@
            },
        },
        mounted () {
            this.getMapList()
            this.$store.dispatch('GetPlanList', {}).then(res => {
                this.getMapList()
            })
        }
    }
</script>