From 3c8fa57b0962f6179540e09e009992bf244aa66f Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 14 Dec 2020 18:10:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=97=E9=93=81=E9=99=A2=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.ntyl | 7 +++++++ package.json | 1 + src/views/login/index.vue | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 .env.ntyl diff --git a/.env.ntyl b/.env.ntyl new file mode 100644 index 000000000..cbcd4c513 --- /dev/null +++ b/.env.ntyl @@ -0,0 +1,7 @@ +# just a flag +NODE_ENV = 'production' +VUE_APP_PRO = 'ntyl' + +# base api +VUE_APP_BASE_API = 'https://joylink.club/jlcloud' +VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink' diff --git a/package.json b/package.json index bfa5fbbe1..e589cb9d6 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "build": "vue-cli-service build --mode production", "test": "vue-cli-service build --mode staging", "local": "vue-cli-service build --mode native", + "ntyl": "vue-cli-service build --mode ntyl", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src", "test:unit": "jest --clearCache && vue-cli-service test:unit", diff --git a/src/views/login/index.vue b/src/views/login/index.vue index eaff96a32..66fcee9a1 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -208,8 +208,12 @@ export default { const split = this.$route.path.split('/')[1]; if (process.env.VUE_APP_PRO === 'local' && split == 'design') { return split + 'heb'; + } else if (process.env.VUE_APP_PRO === 'ntyl' && split == 'design') { + return split + 'ntyl'; } else if (process.env.VUE_APP_PRO === 'local' && split == 'login') { return 'heb'; + } else if (process.env.VUE_APP_PRO === 'ntyl' && split == 'login') { + return 'ntyl'; } else if (split == 'design') { return project ? split + project : split; } else if (split == 'login') {