mirror of
https://gitee.com/BDWare/agent-backend
synced 2025-01-10 18:04:13 +00:00
15 lines
412 B
Plaintext
15 lines
412 B
Plaintext
module Viewable{
|
|
@Description("该方法用于返回资源文件")
|
|
export function loadResource(arg) {
|
|
return Global.Resources.loadAsString(arg);
|
|
}
|
|
@Description("该方法用于判断是否需要渲染")
|
|
export function needRender(arg) {
|
|
return true;
|
|
}
|
|
@Description("该方法用于返回首页的资源文件")
|
|
export function getMainFrame(arg) {
|
|
return "/html/main.html";
|
|
}
|
|
}
|