微信小程序业务域名、服务器域名已经配置,小程序与公众已经关联
<template>
<view class="container">
<web-view src="https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=Mzk0MTg2NzY5Ng==#wechat_redirect"></web-view>
<view class="loading-overlay" v-if="loading">
<view class="loading-content">
<view class="loading-icon"></view>
<text class="loading-text">正在加载公众号...</text>
</view>
</view>
</view>
</template>
<script setup>
import { ref, onMounted, onBeforeUnmount } from 'vue';
const loading = ref(true);
let timer = null;
onMounted(() => {
// 3秒后隐藏加载状态
timer = setTimeout(() => {
loading.value = false;
}, 3000);
});
onBeforeUnmount(() => {
if (timer) {
clearTimeout(timer);
}
});
</script>

关联的公众号,只能打开文章
业务域名应该配不了
目前不支持使用 web-view 访问这个历史消息页面链接,只能打开已关联公众号/服务号的文章链接和配置好业务域名的网页。