问题描述
我正在使用共享的运行时,如果我引用function.html文件,则自定义函数页面源位置链接会正常运行,但如果我参考taskpane.html,则所有函数都显示#Busy!全部时间。我已经清除了Office Windows缓存,并且没有使用yo office生成我的添加项目。
清单文件(仅列出与自定义功能有关的部分)
........
<Requirements>
<Sets DefaultMinVersion="1.1">
<Set Name="SharedRuntime" MinVersion="1.1"/>
</Sets>
</Requirements>
...................
<Runtimes>
<Runtime resid="Prophix.Taskpane.Url" lifetime="long" />
</Runtimes>
<AllFormFactors>
<ExtensionPoint xsi:type="CustomFunctions">
<Script>
<SourceLocation resid="Prophix.FunctionFile.Url"/>
</Script>
<Page>
<SourceLocation resid="Prophix.FunctionPage.Url"/>
</Page>
<Metadata>
<SourceLocation resid="Prophix.FunctionMetadata.Url"/>
</Metadata>
<Namespace resid="Prophix.Functions.Namespace"/>
</ExtensionPoint>
</AllFormFactors>
...................
<bt:Urls>
<bt:Url id="Prophix.Taskpane.Url" DefaultValue="https://devt58011.prophix.com/ProphixAnalyzer/taskpane.html" />
<bt:Url id="Prophix.FunctionFile.Url" DefaultValue="https://devt58011.prophix.com/ProphixAnalyzer/functions.js" />
<bt:Url id="Prophix.FunctionMetadata.Url" DefaultValue="https://devt58011.prophix.com/ProphixAnalyzer/functions.json" />
<bt:Url id="Prophix.FunctionPage.Url" DefaultValue="https://devt58011.prophix.com/ProphixAnalyzer/functions.html" />
<bt:Url id="Prophix.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" />
</bt:Urls>
Function.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Expires" content="0" />
<title></title>
<script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/custom-functions-runtime.js" type="text/javascript"></script>
<script src="functions.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>
TaskPane.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Edit Layout</title>
<base href="./">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<link rel="icon" type="image/x-icon" href="prophix.ico">
<script type="text/javascript" src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js"></script>
<script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/custom-functions-runtime.js" type="text/javascript"></script>
<!-- <script>MutationObserver = null;</script> -->
<script src="functions.js"></script>
</head>
<body>
<px-analyzer-root></px-analyzer-root>
</script><script src="runtime.js" defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="polyfills.js" defer></script><script src="styles.js" defer></script><script src="vendor.js" defer></script><script src="main.js" defer></script></body>
</html>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)