首页个性化
<h1>1、移动端首页设置默认应用</h1>
<h3>1.进入系统设置 => 扩展管理 => 公司级模板,新建一个名为'HomeWidgetDefaultApp.json'的模板,并配置如下:</h3>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=310e9d7ae36b3f5ed72312d3cb5394a6" alt="" /></p>
<p>注意配置里的格式:[{},{}]</p>
<pre><code class="language-json">[
{
"app_id": xxxx,
"category": xxxx,
"target": xxx,
"is_service": xxxx
}
]</code></pre>
<h2>说明:</h2>
<p>app_id这个字段为PC端或者移动端系统首页,打开F12调试模式,切换到Network项,找到'hcm.application.my.all'接口,进入preview页面,在result中可以看到app和service列表,点击展开,找到想要默认加入首页的应用,取其id
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=76189213b3bf3580643849795bb262c9" alt="" /></p>
<p>is_service字段是根据上面的接口返回的数据,如果要加入的应用在result的app下时,则为false或者不配置,在result的service下时,则为true
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=a4a60baae3bc9a51c0199ae8f68b80c3" alt="" /></p>
<p>移动端:target默认为1,category默认为0</p>
<p>pc端:target默认为0,我的服务category为0,常用应用category为1</p>
<h3>2.最后一步 : 进入系统设置 =>企业设置 => 服务器设置,搜索'是否启用默认我的应用',设置为是。</h3>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=1676a46224abdc3cd8afee29e435dc27" alt="" /></p>
<p>[========]</p>