|
@@ -20,7 +20,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {mapState} from "vuex";
|
|
|
+ import { mapState, mapGetters } from "vuex";
|
|
|
|
|
|
export default {
|
|
|
name: "report",
|
|
@@ -30,11 +30,17 @@
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState('layout', ['errorReport'])
|
|
|
+ ...mapGetters('layout', ['projectId']),
|
|
|
+ ...mapState('layout', ['errorReport'])
|
|
|
|
|
|
},
|
|
|
created() {
|
|
|
console.log("lisa gagagg",this.errorReport)
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ projectId() {
|
|
|
+ this.$router.push({path: '/floor/abnormalprop'})
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|