This commit is contained in:
OrangeM21
2020-06-02 02:21:53 +08:00
parent cc83b3ab2f
commit eea802a7f3
3 changed files with 3 additions and 1 deletions

View File

@@ -21,3 +21,4 @@ VUE_APP_LOGOUT_PATH = '/core/auth/logout/'
# Dev server for core proxy
VUE_APP_CORE_HOST = 'http://localhost:8080'
VUE_APP_ENV = 'development'

View File

@@ -8,4 +8,5 @@ VUE_APP_PUBLIC_PATH = '/ui'
# External auth
VUE_APP_LOGIN_PATH = '/core/auth/login/'
VUE_APP_LOGOUT_PATH = '/core/auth/logout/'
VUE_APP_ENV = 'production'

View File

@@ -36,7 +36,7 @@ export default {
defaultSetting: {
async: {
enable: true,
url: (process.env.ENV === 'production') ? (`${this.setting.treeUrl}`) : (`${process.env.VUE_APP_BASE_API}${this.setting.treeUrl}`),
url: (process.env.VUE_APP_ENV === 'production') ? (`${this.setting.treeUrl}`) : (`${process.env.VUE_APP_BASE_API}${this.setting.treeUrl}`),
autoParam: ['id=key', 'name=n', 'level=lv'],
type: 'get'
},