vscode中的SAPUI5 - 调试项目后不显示任何错误但没有显示所有页面

问题描述

我正在 VS Code 中创建一个带有 SAP WEB IDE 的 sapui5 扩展的项目。 我做了一个视图,当我调试项目时没有返回任何错误,但在浏览器中只显示页面名称

这是我的视图代码

<mvc:View
    controllerName="opensap.launchpadSeidor.launchpad.controller.Login"
    xmlns:mvc="sap.ui.core.mvc"
    displayBlock="true"
    xmlns="sap.m"

>

    <Page id="page" title="cenas" >
    <MessagePage showHeader="false"
             text="Detalhes de clientes"
             enableFormattedText="true"
             description="Escolha um cliente da lista ou adicione novo cliente carregando no botão abaixo da mesma"
             icon="sap-icon://message-warning"> 
          </MessagePage>
    </Page> 
</mvc:View>

这是浏览器中的结果:

enter image description here

我不知道发生了什么。昨天我完成了一个具有相同配置的项目,一切正常。今天什么都没跑!我该怎么做才能解决这个问题?

解决方法

我想你可以把它放在像下面这样的 <App> 容器中。

<mvc:View controllerName="my.Controller"
  xmlns:mvc="sap.ui.core.mvc"
  xmlns="sap.m"
  displayBlock="true"
>
  <App>
    <!-- Your Message Page -->
  </App>
</mvc:View>

或者直接将 <MessagePage> 置于视图之下。