联调app
This commit is contained in:
@@ -40,29 +40,33 @@ export default {
|
||||
init() {
|
||||
queryUserPushConfig().then((res) => {
|
||||
this.config = res.data
|
||||
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
change(type) {
|
||||
this.config[type] = this.config[type] === 1 ? 0 : 1
|
||||
updatePushConfig(this.config).then((res) => {
|
||||
let str = ''
|
||||
switch (type) {
|
||||
case 'iticFunction':
|
||||
str = 'ITIC'
|
||||
break
|
||||
case 'f47Function':
|
||||
str = 'F47'
|
||||
break
|
||||
}
|
||||
this.$util.toast(`${str}配置${this.config[type] === 1 ? '开启' : '关闭'}成功`)
|
||||
})
|
||||
// updatePushConfig(this.config).then((res) => {
|
||||
// let str = ''
|
||||
// switch (type) {
|
||||
// case 'iticFunction':
|
||||
// str = 'ITIC'
|
||||
// break
|
||||
// case 'f47Function':
|
||||
// str = 'F47'
|
||||
// break
|
||||
// }
|
||||
// this.$util.toast(`${str}配置${this.config[type] === 1 ? '开启' : '关闭'}成功`)
|
||||
// })
|
||||
},
|
||||
},
|
||||
onLoad() {
|
||||
this.init()
|
||||
},
|
||||
onUnload() {
|
||||
updatePushConfig(this.config).then((res) => {
|
||||
// this.$util.toast(`配置修改成功!`)
|
||||
})
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user