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') {