通知媒介增加任务队列查看功能

This commit is contained in:
GoEdgeLab
2021-08-24 14:22:15 +08:00
parent 796b91d3d5
commit e360de6d8c
5 changed files with 155 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
Vue.component("menu-item", {
props: ["href", "active", "code"],
data: function () {
var active = this.active
let active = this.active
if (typeof (active) == "undefined") {
var itemCode = ""
if (typeof (window.TEA.ACTION.data.firstMenuItem) != "undefined") {
@@ -18,8 +18,19 @@ Vue.component("menu-item", {
}
}
}
let href = (this.href == null) ? "" : this.href
if (typeof (href) == "string" && href.length > 0 && href.startsWith(".")) {
let qIndex = href.indexOf("?")
if (qIndex >= 0) {
href = Tea.url(href.substring(0, qIndex)) + href.substring(qIndex)
} else {
href = Tea.url(href)
}
}
return {
vHref: (this.href == null) ? "" : this.href,
vHref: href,
vActive: active
}
},