修改bug

This commit is contained in:
‘937886381’
2024-03-29 09:51:19 +08:00
parent 0d118d499f
commit 0fa651fccf
9 changed files with 222 additions and 154 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-11-08 14:00:52
* @LastEditTime: 2024-03-25 14:09:33
* @LastEditTime: 2024-03-29 08:46:42
* @LastEditors: zhp
* @Description:
-->
@@ -25,24 +25,24 @@ export default {
},
data() {
return {
// state: false
}
},
computed: {
state() {
return this.injectData.enabled === 1 ? true : false
state: false
}
},
// computed: {
// state() {
// return this.injectData.enabled === 1 ? true : false
// }
// },
mounted() {
// this.mapToState()
this.mapToState()
},
methods: {
// mapToState() {
// if (this.injectData.prop === 'enabled') {
// this.state = this.injectData.enabled === 1 ? true : false
// }
// },
mapToState() {
if (this.injectData.prop === 'enabled') {
this.state = this.injectData.enabled === 1 ? true : false
}
},
changeHandler() {
// let params = {}
let payload = {}