From dc4168ee2806b75c2ce555eef2d41fa1f090a1ce Mon Sep 17 00:00:00 2001 From: Lei OT Date: Fri, 29 Dec 2023 17:00:35 +0800 Subject: [PATCH] 1 --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 312f0aa..93c6977 100644 --- a/index.html +++ b/index.html @@ -170,6 +170,7 @@ { name: 'No', value: 0, url: './img/thumbsdown.svg', svg: thumbsDown }, ]; const webList = { + "default": 'ah', "www.asiahighlights.com": 'ah', "www.globalhighlights.com": 'gh', }; @@ -280,7 +281,7 @@ methods: { initData() { var hostname = window.location.hostname.toLowerCase(); - this.webcode = webList[hostname]; + this.webcode = webList[hostname] || webList.default; var urlParams = new URLSearchParams(window.location.search); for (const param of urlParams) {