|
@@ -61,6 +61,7 @@ interface IRes<T = any> {
|
61
|
61
|
|
62
|
62
|
onMounted(() => {
|
63
|
63
|
console.log('params => ', params)
|
|
64
|
+ changeTitleClick()
|
64
|
65
|
handleGetPlayletGroup()
|
65
|
66
|
})
|
66
|
67
|
|
|
@@ -174,6 +175,25 @@ function goUrl(url) {
|
174
|
175
|
document.body.removeChild(link);
|
175
|
176
|
}
|
176
|
177
|
|
|
178
|
+// 动态修改微信网页标题
|
|
179
|
+const setTitle = function (t) {
|
|
180
|
+ document.title = t;
|
|
181
|
+ var i = document.createElement("iframe");
|
|
182
|
+ i.src = "./favicon.ico";
|
|
183
|
+ i.style.display = "none";
|
|
184
|
+ i.onload = function () {
|
|
185
|
+ setTimeout(function () {
|
|
186
|
+ i.remove();
|
|
187
|
+ }, 9);
|
|
188
|
+ };
|
|
189
|
+ document.body.appendChild(i);
|
|
190
|
+};
|
|
191
|
+const changeTitleClick = () => {
|
|
192
|
+ setTimeout(function () {
|
|
193
|
+ setTitle("短剧推荐");
|
|
194
|
+ }, 1);
|
|
195
|
+}
|
|
196
|
+
|
177
|
197
|
|
178
|
198
|
</script>
|
179
|
199
|
|