|
|
@@ -147,7 +147,9 @@ let vm = new Vue({
|
|
|
mounted() {
|
|
|
this.params.token = window.location.search.split('?token=')[1];
|
|
|
this.ho = window.location.host.split('.')[1];
|
|
|
- this.imgUrl = 'https://secure.' + this.ho + '.com'
|
|
|
+ let hostParts = window.location.host.split('.');
|
|
|
+ let tld = hostParts.slice(2).join('.') || 'com';
|
|
|
+ this.imgUrl = 'https://secure.' + this.ho + "." + tld
|
|
|
|
|
|
var jsSrc =(navigator.language || navigator.browserLanguage).toLowerCase();
|
|
|
if(jsSrc.indexOf('zh') >= 0){
|