加上 key, 并且每次打开 key 不同
<iframe style="width: 100%; min-height: 1200px" src="xxxx" :key="kkk" frameBorder="0"></iframe>
data() {
return {
kkk:new Date().getTime()
};
},
index.html中加上不缓存设置
<head>
<meta charset="UTF-8" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>xxx</title>
</head>