mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-27 11:10:51 +00:00
feat: 修改base api
This commit is contained in:
parent
cd4da8409b
commit
40e118bb41
@ -2,7 +2,7 @@
|
||||
ENV = 'production'
|
||||
|
||||
# base api
|
||||
VUE_APP_BASE_API = '/'
|
||||
VUE_APP_BASE_API = ''
|
||||
VUE_APP_PUBLIC_PATH = '/ui'
|
||||
|
||||
# External auth
|
||||
|
@ -7,7 +7,6 @@
|
||||
<div v-if="treeSetting.treeUrl===''">
|
||||
{{ this.$t('common.tree.Empty') }}<a id="tree-refresh"><i class="fa fa-refresh" /></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="rMenu">
|
||||
<ul class="dropdown-menu menu-actions">
|
||||
@ -175,4 +174,8 @@ export default {
|
||||
text-decoration: none;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.treebox {
|
||||
height: 100vh - 120;
|
||||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
|
@ -33,6 +33,7 @@ export function getCurrentOrgFromCookie() {
|
||||
|
||||
export function saveCurrentOrgToCookie(org) {
|
||||
VueCookie.set(CURRENT_ORG_KEY, JSON.stringify(org), 14)
|
||||
VueCookie.set('X-JMS-ORG', org.id)
|
||||
}
|
||||
|
||||
export function removeCurrentOrg() {
|
||||
|
@ -40,12 +40,9 @@ module.exports = {
|
||||
proxy: {
|
||||
// change xxx-api/login => mock/login
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
'/api/': {
|
||||
target: process.env.VUE_APP_CORE_HOST,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
}
|
||||
changeOrigin: true
|
||||
},
|
||||
'^/(core|static|media)/': {
|
||||
target: process.env.VUE_APP_CORE_HOST,
|
||||
|
Loading…
Reference in New Issue
Block a user