fix_操作日志_工作空间成员无法跳转--bug=1006766 --user=王孝刚 【系统设置-操作日志】添加工作空间成员标题高亮可点击,但点击后无响应 https://www.tapd.cn/55049933/s/1049005

This commit is contained in:
wxg0103 2021-09-22 11:24:34 +08:00 committed by fit2-zhao
parent ce19ddbbc2
commit 6b2f6bfcfc
1 changed files with 10 additions and 12 deletions

View File

@ -205,23 +205,21 @@
return false;
},
clickResource(resource) {
if (!resource.sourceId) {
this.$get('/user/update/currentByResourceId/' + resourceId, () => {
this.toPage(uri);
});
}
let resourceId = resource.sourceId;
if (resourceId && resourceId.startsWith("\"" || resourceId.startsWith("["))) {
resourceId = JSON.parse(resource.sourceId);
}
if (resourceId instanceof Array) {
resourceId = resourceId[0];
}
let uri = getUrl(resource);
if (!resource.sourceId) {
this.toPage(uri);
}
let operModule = resource.operModule;
if (operModule === "系统-系统参数设置" || operModule === "系统-系統參數設置" || operModule === "System parameter setting") {
this.toPage(uri);
} else {
let resourceId = resource.sourceId;
if (resourceId && resourceId.startsWith("\"" || resourceId.startsWith("["))) {
resourceId = JSON.parse(resource.sourceId);
}
if (resourceId instanceof Array) {
resourceId = resourceId[0];
}
this.$get('/user/update/currentByResourceId/' + resourceId, () => {
this.toPage(uri);
});