人员管理、民主管理、主页优化
This commit is contained in:
@@ -5,7 +5,7 @@ const entry = {
|
||||
<div class="portal-entry-tabs" role="tablist" aria-label="推荐入口">
|
||||
<button v-for="section in entrySections" :key="section.key"
|
||||
type="button" role="tab" :aria-selected="activeSection === section.key"
|
||||
:class="{active: activeSection === section.key}" @click="$set(this, 'activeSection', section.key)">{{ section.title }}</button>
|
||||
:class="{active: activeSection === section.key}" @click="switchSection(section.key)">{{ section.title }}</button>
|
||||
</div>
|
||||
<a class="portal-more" href="/platform/v4/apps">全部应用 <i class="fa fa-arrow-right" aria-hidden="true"></i></a>
|
||||
</div>
|
||||
@@ -60,6 +60,10 @@ const entry = {
|
||||
this.getFavorite()
|
||||
},
|
||||
methods: {
|
||||
// sectionKey 为 serv(推荐服务)、app(推荐应用)或 fav(我的收藏);通过组件方法更新栏目,避免内联事件中 this 指向错误。
|
||||
switchSection(sectionKey) {
|
||||
this.$set(this, 'activeSection', sectionKey)
|
||||
},
|
||||
// platform 固定传 PC;Result.data 为当前用户有权限的推荐服务数组。
|
||||
getRecommendService() {
|
||||
this.$axios.post('/platform/home/listRecommendService', {platform: "PC"}).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user