Teams 插件 - 侧面加载 - 静态选项卡 - 舞台视图

问题描述 投票:0回答:1

如果应用程序在 Teams 中通过侧负载加载,我无法在静态选项卡中打开舞台视图。舞台视图(模式)甚至不显示,点击被忽略。控制台中没有显示错误。使用硬链接时,会显示一条消息,指出该 URL 不存在。但相同的 URL 适用于从商店添加的应用程序。 阶段视图中使用的域将添加到清单中。 如果应用程序是从商店安装的,则一切正常。 有人遇到过类似的问题吗

我试过了

    msTeams.stageView.open({
        "entityId": urlPart,
        "appId": appId,
        "contentUrl": baseUrl,
        "title": encodedName,
        "websiteUrl": baseUrl,
        "openMode": "modal"
    })

 let urlPart = appId + "/0?context={\"contentUrl\":\"" + baseUrl + "\",\"websiteUrl\":\"" + baseUrl + "\",\"name\":\"" + encodedName + "\"}";
 let url = "https://teams.microsoft.com/l/stage/" + encodeURIComponent(urlPart);
 msTeams.app.openLink(url);

我正在使用 TeamsJs 2.21.0

microsoft-teams microsoft-teams-js
1个回答
0
投票

MS 向我指出了正确的文档,它实际上说应用程序 ID 根据应用程序部署的类型而变化。

     Type of app                    Type of app ID
     Custom app uploaded in Teams   Manifest ID
     Apps submitted to org catalog  Org catalog ID
     Apps submitted to Teams Store  Store ID
© www.soinside.com 2019 - 2024. All rights reserved.