@@ -80,6 +80,13 @@
copyTaskInfo: []
};
},
+ onBackPress(e) {
+ if (uni.getStorageSync("everyTask")) {
+ uni.switchTab({
+ url: '/pages/user/user'
+ });
+ }
+ },
watch: {
checked(val) {
uni.setStorageSync("everyTask", this.checked)