refactor: 去掉首页tips相关代码
This commit is contained in:
parent
6a5d853b14
commit
d34ab9113d
|
@ -58,30 +58,15 @@ export default {
|
||||||
testCaseCountData: {},
|
testCaseCountData: {},
|
||||||
scheduleTaskCountData: {},
|
scheduleTaskCountData: {},
|
||||||
interfaceCoverage: "waitting...",
|
interfaceCoverage: "waitting...",
|
||||||
tipsType: "1",
|
|
||||||
result: {},
|
result: {},
|
||||||
seasonTips: "😊 MeterSphere温馨提醒 —— 多喝热水哟!",
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
this.search();
|
this.search();
|
||||||
this.checkTipsType();
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
search() {
|
||||||
let selectProjectId = getCurrentProjectID();
|
let selectProjectId = getCurrentProjectID();
|
||||||
|
|
||||||
|
|
|
@ -73,16 +73,13 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tipsType: "1",
|
|
||||||
result: {},
|
result: {},
|
||||||
trackCountData: {},
|
trackCountData: {},
|
||||||
relevanceCountData: {},
|
relevanceCountData: {},
|
||||||
caseOption: {},
|
caseOption: {},
|
||||||
seasonTips: "😊 MeterSphere温馨提醒 —— 多喝热水哟!",
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
this.checkTipsType();
|
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -91,18 +88,6 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
init() {
|
||||||
let selectProjectId = this.projectId;
|
let selectProjectId = this.projectId;
|
||||||
if (!selectProjectId) {
|
if (!selectProjectId) {
|
||||||
|
|
Loading…
Reference in New Issue