Lei OT 2 years ago
parent 0e1ee2f74c
commit dc4168ee28

@ -170,6 +170,7 @@
{ name: 'No', value: 0, url: './img/thumbsdown.svg', svg: thumbsDown }, { name: 'No', value: 0, url: './img/thumbsdown.svg', svg: thumbsDown },
]; ];
const webList = { const webList = {
"default": 'ah',
"www.asiahighlights.com": 'ah', "www.asiahighlights.com": 'ah',
"www.globalhighlights.com": 'gh', "www.globalhighlights.com": 'gh',
}; };
@ -280,7 +281,7 @@
methods: { methods: {
initData() { initData() {
var hostname = window.location.hostname.toLowerCase(); var hostname = window.location.hostname.toLowerCase();
this.webcode = webList[hostname]; this.webcode = webList[hostname] || webList.default;
var urlParams = new URLSearchParams(window.location.search); var urlParams = new URLSearchParams(window.location.search);
for (const param of urlParams) { for (const param of urlParams) {

Loading…
Cancel
Save