diff --git a/.env.development b/.env.development index b387ff05b..1f981edf9 100644 --- a/.env.development +++ b/.env.development @@ -8,6 +8,7 @@ NODE_ENV = 'development' VUE_APP_BASE_API = 'http://192.168.3.6:9000' VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink' VUE_APP_UPLOAD_API = 'https://upload.joylink.club' +VUE_APP_BASE_SITE='https://test.joylink.club/cbtc' # VUE_APP_VOICE_API = 'http://192.168.8.110:9008' diff --git a/.env.heb b/.env.heb index 6f94e6d38..f812f3b43 100644 --- a/.env.heb +++ b/.env.heb @@ -6,3 +6,4 @@ VUE_APP_PRO = 'local' VUE_APP_BASE_API = 'https://joylink.club/jlcloud' VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink' VUE_APP_UPLOAD_API = 'https://upload.joylink.club' +VUE_APP_BASE_SITE='https://joylink.club/cbtc' diff --git a/.env.ntyl b/.env.ntyl index 1ba6de5da..23049259f 100644 --- a/.env.ntyl +++ b/.env.ntyl @@ -6,3 +6,4 @@ VUE_APP_PRO = 'ntyl' VUE_APP_BASE_API = 'https://joylink.club/jlcloud' VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink' VUE_APP_UPLOAD_API = 'https://upload.joylink.club' +VUE_APP_BASE_SITE='https://joylink.club/cbtc' diff --git a/.env.production b/.env.production index 71363ca9f..6924d751f 100644 --- a/.env.production +++ b/.env.production @@ -5,3 +5,4 @@ NODE_ENV = 'production' VUE_APP_BASE_API = 'https://api.joylink.club/jlcloud' VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink' VUE_APP_UPLOAD_API = 'https://upload.joylink.club' +VUE_APP_BASE_SITE='https://joylink.club/cbtc' diff --git a/.env.staging b/.env.staging index d1042b068..35048ea21 100644 --- a/.env.staging +++ b/.env.staging @@ -5,3 +5,4 @@ NODE_ENV = 'test' VUE_APP_BASE_API = 'https://test.joylink.club/jlcloud' VUE_APP_VOICE_API = 'https://oss.joylink.club/oss/joylink' VUE_APP_UPLOAD_API = 'https://upload.joylink.club' +VUE_APP_BASE_SITE='https://test.joylink.club/cbtc' diff --git a/src/layout/components/Entry.vue b/src/layout/components/Entry.vue index c75cdd7cc..9aebf7261 100644 --- a/src/layout/components/Entry.vue +++ b/src/layout/components/Entry.vue @@ -142,11 +142,7 @@ export default { // } else { // href = 'https://joylink.club/docs'; // } - if (process.env.NODE_ENV === 'development') { - href = 'https://test.joylink.club/cbtc/docs/'; - } else { - href = 'https://joylink.club/cbtc/docs/'; - } + href = process.env.VUE_APP_BASE_SITE + '/docs/'; window.open(href, '_blank'); }, goEmpty() {},