Commit a4ab8039 by fukai

快照提交2

parent da0b10e0
......@@ -6,7 +6,7 @@ export default {
return {}
},
mounted(){
this.restoreDisplay()
//this.restoreDisplay()
},
methods:{
init(params){
......
......@@ -9,8 +9,10 @@ export default {
},
created: function () {},
mounted() {
if(!this.isInDisplay){
this.ruleWatcher()
this.ruleCheck()
}
},
methods: {
ruleWatcher() {
......@@ -45,5 +47,10 @@ export default {
}
this.rules = res;
}
},
computed:{
isInDisplay(){
return this.$store.state.Status.mode === 'display'
}
}
}
\ No newline at end of file
......@@ -6,9 +6,22 @@
<script>
import businessContainer from "../Business"
import { mapMutations } from 'vuex'
export default {
components:{
businessContainer //复用业务容器
},
created: function () {
console.log("进入快照界面")
this.setMode('display')
},
destroyed: function () {
this.setMode('normal')
},
methods: {
...mapMutations([
'setMode'
])
}
}
</script>
......
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