From 8a8a1cd18ab3ac720f1af89f4466a82bae3f7ade Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Thu, 20 Oct 2022 14:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Portal/interestCollection.vue | 2 +- src/utils/bus.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/utils/bus.js diff --git a/src/components/Portal/interestCollection.vue b/src/components/Portal/interestCollection.vue index b372dc7f..057c4998 100644 --- a/src/components/Portal/interestCollection.vue +++ b/src/components/Portal/interestCollection.vue @@ -48,7 +48,7 @@ if(res.result == false){ this.interestCollection = true; } - if(res.result == true){this.interestCollection = false;return;} + if(res.result == true){this.interestCollection = true;return;} // 2. 判断用户是否点击过"暂不选择"按钮,如果用户点击过"暂不选择"按钮则判断点击"暂不选择"按钮天数是否大于15天,如果大于则弹出兴趣偏好框,否则不弹 let time = localStorage.getItem('notYet'+this.userInfo.aid); if(!time == '' || time != null) { diff --git a/src/utils/bus.js b/src/utils/bus.js new file mode 100644 index 00000000..925cee00 --- /dev/null +++ b/src/utils/bus.js @@ -0,0 +1,3 @@ +import Vue from 'vue' +const Bus = new Vue(); +export default Bus; \ No newline at end of file