去掉前端入口
This commit is contained in:
@@ -2,11 +2,7 @@
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = 'http://local.zyplayer.com:8083/zyplayer-doc'
|
VUE_APP_BASE_API = 'http://local.zyplayer.com:8083'
|
||||||
# VUE_APP_BASE_API = 'http://zyplayer.com'
|
# VUE_APP_BASE_API = 'http://zyplayer.com'
|
||||||
|
|
||||||
|
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,3 @@ ENV = 'production'
|
|||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = './'
|
VUE_APP_BASE_API = './'
|
||||||
|
|
||||||
|
|||||||
@@ -7,15 +7,7 @@
|
|||||||
<span>所有产品</span>
|
<span>所有产品</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="product-list">
|
<div class="product-list">
|
||||||
<div class="item" v-on:click="jumpToDocPage('doc-api')" v-if="this.moudleInfo.enableApi">
|
<div class="item" v-on:click="jumpToDocPage('doc-wiki')">
|
||||||
<div class="logo-text text1">API</div>
|
|
||||||
<div>API接口文档</div>
|
|
||||||
</div>
|
|
||||||
<div class="item" v-on:click="jumpToDocPage('doc-db')" v-if="this.moudleInfo.enableDb">
|
|
||||||
<div class="logo-text text2">DB</div>
|
|
||||||
<div>数据库文档</div>
|
|
||||||
</div>
|
|
||||||
<div class="item" v-on:click="jumpToDocPage('doc-wiki')" v-if="this.moudleInfo.enableWiki">
|
|
||||||
<div class="logo-text text3">WIKI</div>
|
<div class="logo-text text3">WIKI</div>
|
||||||
<div>WIKI文档</div>
|
<div>WIKI文档</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -27,40 +19,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import systemApi from "../../common/api/system";
|
export default {
|
||||||
export default {
|
data() {
|
||||||
data() {
|
return {
|
||||||
return {
|
};
|
||||||
moudleInfo:{
|
},
|
||||||
enableWiki:true,
|
methods: {
|
||||||
enableDb:true,
|
jumpToDocPage(val) {
|
||||||
enableApi:true,
|
window.open(val);
|
||||||
}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
mounted: function () {
|
|
||||||
},
|
|
||||||
created(){
|
|
||||||
this.fetchMoudle()
|
|
||||||
},
|
},
|
||||||
methods: {
|
}
|
||||||
fetchMoudle(){
|
}
|
||||||
systemApi.fetchMoudleData().then(json => {
|
|
||||||
if(!!json.data){
|
|
||||||
this.moudleInfo = json.data;
|
|
||||||
console.log(
|
|
||||||
"wiki模块启动状态" +this.moudleInfo.enableWiki+
|
|
||||||
"db模块启动状态" +this.moudleInfo.enableDb+
|
|
||||||
"api模块启动状态" +this.moudleInfo.enableApi
|
|
||||||
)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
jumpToDocPage(val) {
|
|
||||||
window.open(val);
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.product-list{text-align: left;}
|
.product-list{text-align: left;}
|
||||||
|
|||||||
Reference in New Issue
Block a user