forked from github/dataease
Merge pull request #2108 from dataease/pr@dev@feat_help_home_link_config
feat: 帮助文档及首页支持链接自定义
This commit is contained in:
commit
1028f38e19
@ -35,7 +35,7 @@ public class PanelLinkService {
|
||||
private static final String USERPARAM = "&user=";
|
||||
private static final String SHORT_URL_PREFIX = "/link/";
|
||||
|
||||
@Value("${server.servlet.context-path}")
|
||||
@Value("${server.servlet.context-path:#{null}}")
|
||||
private String contextPath;
|
||||
|
||||
@Resource
|
||||
|
File diff suppressed because one or more lines are too long
@ -1683,7 +1683,10 @@ export default {
|
||||
themeDark: 'Dark',
|
||||
themeCustom: 'Custom',
|
||||
openHomePage: 'Show Home Page',
|
||||
mobileBG: 'Mobile Login page BG'
|
||||
mobileBG: 'Mobile Login page BG',
|
||||
helpLink: 'Help Document Link',
|
||||
homeLink: 'Home Link',
|
||||
defaultHomeLink: 'Default is the system built-in home page'
|
||||
|
||||
},
|
||||
auth: {
|
||||
|
@ -1693,7 +1693,10 @@ export default {
|
||||
themeCustom: '自定義',
|
||||
openHomePage: '顯示首頁',
|
||||
|
||||
mobileBG: '移動端登錄頁背景'
|
||||
mobileBG: '移動端登錄頁背景',
|
||||
helpLink: '幫助文檔鏈接',
|
||||
homeLink: '首頁鏈接',
|
||||
defaultHomeLink: '默認為系統內置首頁'
|
||||
|
||||
},
|
||||
auth: {
|
||||
|
@ -1701,7 +1701,10 @@ export default {
|
||||
themeDark: '深色',
|
||||
themeCustom: '自定义',
|
||||
openHomePage: '显示首页',
|
||||
mobileBG: '移动端登录页背景'
|
||||
mobileBG: '移动端登录页背景',
|
||||
helpLink: '帮助文档链接',
|
||||
homeLink: '首页链接',
|
||||
defaultHomeLink: '默认为系统内置首页'
|
||||
|
||||
},
|
||||
auth: {
|
||||
|
@ -27,7 +27,7 @@
|
||||
<lang-select class="right-menu-item hover-effect" />
|
||||
<div style="height: 100%;padding: 0 8px;" class="right-menu-item hover-effect">
|
||||
<a
|
||||
href="https://dataease.io/docs/"
|
||||
:href="helpLink"
|
||||
target="_blank"
|
||||
style="display: flex;height: 100%;width: 100%;justify-content: center;align-items: center;"
|
||||
>
|
||||
@ -151,6 +151,12 @@ export default {
|
||||
}
|
||||
return this.variables.topBarMenuTextActive
|
||||
},
|
||||
helpLink() {
|
||||
if (this.$store.getters.uiInfo && this.$store.getters.uiInfo['ui.helpLink'] && this.$store.getters.uiInfo['ui.helpLink'].paramValue) {
|
||||
return this.$store.getters.uiInfo['ui.helpLink'].paramValue
|
||||
}
|
||||
return 'https://dataease.io/docs/'
|
||||
},
|
||||
/* topMenuColor() {
|
||||
return this.$store.getters.uiInfo.topMenuColor
|
||||
}, */
|
||||
|
@ -1,5 +1,13 @@
|
||||
<template>
|
||||
<el-row class="main_container">
|
||||
<div
|
||||
v-if="loading"
|
||||
v-loading="loading"
|
||||
style="position:absolute;top:55px;width: 100%;height: calc(100% - 55px);"
|
||||
/>
|
||||
<div v-else-if="homeLink">
|
||||
<iframe id="mobsf" :src="homeLink" frameborder="0" style="position:absolute;top:55px;width: 100%;height: calc(100% - 55px);" />
|
||||
</div>
|
||||
<el-row v-else class="main_container">
|
||||
<el-row class="head">
|
||||
<span class="hint_head">{{ $t('wizard.welcome_title') }}</span> <br>
|
||||
<span class="hint_content">{{ $t('wizard.welcome_hint') }}</span>
|
||||
@ -73,9 +81,25 @@ export default {
|
||||
href: 'https://www.dataease.io',
|
||||
component: 'CardDetail'
|
||||
}
|
||||
]
|
||||
],
|
||||
loading: true
|
||||
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
homeLink() {
|
||||
if (this.$store.getters.uiInfo && this.$store.getters.uiInfo['ui.homeLink'] && this.$store.getters.uiInfo['ui.homeLink'].paramValue) {
|
||||
return this.$store.getters.uiInfo['ui.homeLink'].paramValue
|
||||
}
|
||||
return null
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
this.loading = false
|
||||
}, 1000)
|
||||
},
|
||||
|
||||
created() {
|
||||
this.init()
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user