refactor: 去掉首页tips相关代码

This commit is contained in:
shiziyuan9527 2021-07-13 15:09:04 +08:00 committed by 刘瑞斌
parent 6a5d853b14
commit d34ab9113d
2 changed files with 0 additions and 30 deletions

View File

@ -58,30 +58,15 @@ export default {
testCaseCountData: {},
scheduleTaskCountData: {},
interfaceCoverage: "waitting...",
tipsType: "1",
result: {},
seasonTips: "😊 MeterSphere温馨提醒 —— 多喝热水哟!",
}
},
activated() {
this.search();
this.checkTipsType();
},
created() {
},
methods: {
checkTipsType() {
var random = Math.floor(Math.random() * (4 - 1 + 1)) + 1;
this.tipsType = random + "";
let today = new Date();
let month = today.getMonth();
if (9 > month > 4) {
this.seasonTips = "🤔️ 天凉了,保温杯买了吗?";
} else {
this.seasonTips = "🤔️天热了,小风扇买了吗?";
}
},
search() {
let selectProjectId = getCurrentProjectID();

View File

@ -73,16 +73,13 @@ export default {
},
data() {
return {
tipsType: "1",
result: {},
trackCountData: {},
relevanceCountData: {},
caseOption: {},
seasonTips: "😊 MeterSphere温馨提醒 —— 多喝热水哟!",
}
},
activated() {
this.checkTipsType();
this.init();
},
computed: {
@ -91,18 +88,6 @@ export default {
},
},
methods: {
checkTipsType() {
let random = Math.floor(Math.random() * (4 - 1 + 1)) + 1;
this.tipsType = random + "";
let today = new Date();
let month = today.getMonth();
if (9 > month > 4) {
this.seasonTips = "🤔️ 天凉了,保温杯买了吗?";
} else {
this.seasonTips = "🤔️天热了,小风扇买了吗?";
}
},
init() {
let selectProjectId = this.projectId;
if (!selectProjectId) {